Feudalism established a strict social hierarchy in medieval England following the Norman invasion. At the top was the king, who granted land to barons in exchange for loyalty and military service. Barons then granted land to knights who swore loyalty to their baron and protected their lands. Peasants worked the lands but had few rights. The system declined due to the Black Death reducing the population and the Peasants' Revolt which demanded changes to their treatment.