The keeping of animals for specific purposes and benefits of human beings is known as:
Domestication
Domestication is the process of taming an animal and keeping it as a pet or in a farm. Many animals have been domesticated for human benefits like milk, meat or other animal products such as wool, silk, etc. Examples of a few domestic animals are cattle, sheep, goat, poultry birds, etc. All domestic useful animals constitute livestock.