Domestic goats are descended from a species originally living in the sparsely vegetated highlands in western Asia. They are a very adaptable species, and as a domesticated farm animal, goats live everywhere from deserts to the tundra.
Goats are grazing animals and they usually require grass, much like cattle and sheep. The difference is that they can live off of thinner grass cover than other animals of similar size. Feral goats often live in nearly barren hilly terrain, similar to the craggy highlands their ancestors once roamed. Feral goats also occupy pine meadows and tropical and temperate forests.
Goats may also be kept in feed lots without any vegetation, as long as they are cared for daily by humans. They can survive on dry roughage, such as hay, alone for long periods of time.