Gradually, rulers began to have private animal collections, near their farms, like Emperor Frederick II in 1194, who was the predecessor of the zoos. He built one of the first animal gardens in the Middle Ages, and collected many different species, which he exchanged with other rulers.