Keeping livestock in cities has been common throughout history and is still practised in many parts of the world. For example, 50,000 pigs were being kept in Manhattan in 1859. But local ordinances were created to limit this, owing to the noise and smell nuisance, and these were only relaxed in time of war when the urban populace was encouraged to provide food for themselves.
In the USA, the raising of chickens in urban surroundings is increasingly popular. For example, in Madison, citizens formed a group called the Chicken Underground, overturned a ban upon domestic chickens and there are now 81 registered owners.