Many of the people who repopulated the land were peasants who were driven by necessity to migrate. With limited material resources, they cleared the woodland and began cultivating the fields they cleared, which became theirs through aprisió, a contract that granted ownership of the land to the person who worked it for 30 years. The peasant families who owned the freehold on their land in the 9th and 10th centuries were nuclear families who grew crops and kept farm animals. Cereals, together with the products from the vine and various fruit trees, formed the basis of the diet, complemented by meat caught by hunting and by food gathered in the woodland.