Feudalism arose in Western Europe after the fall of the Carolingian Empire as a means of providing protection and order to the people. Under feudalism, kings granted land to lords in exchange for military service, and lords granted land to vassals who would fight for their lord. This system involved complex relationships and obligations of homage and loyalty between social classes. Feudalism stabilized society during turbulent times but also stratified it into a rigid hierarchy.