The short answer
In the Middle Ages, society in much of Europe was ranked roughly like this: the king at the top, then the great nobles and senior clergy, then knights and lesser gentry, then free townspeople and tenant farmers, and finally unfree peasants known as serfs or villeins. This is a simplification. Rank varied by region and time, and real life was more flexible than the tidy diagram suggests.
The three-orders idea
Medieval writers, especially from around the eleventh century, often described society as three orders: those who pray (the clergy), those who fight (the nobility and knights), and those who work (everyone else, mainly peasants). This was an ideal that justified a social order in which each group had a role. It left out many people, including merchants and craftsmen, and it did not show that the orders had their own internal ranks.
The monarch and the nobility
The king stood at the top and was thought to be chosen by God. Beneath him came the high nobility, whose titles varied by country. In England they included earls and barons. If you are interested in the titles themselves, see our pages on medieval titles in order and on what the order of the English nobility looked like. Nobles held land from the crown and owed counsel and military service. Many of them had their own followers and castles.
The clergy
The Church was a hierarchy of its own, running from the pope through archbishops and bishops to priests, monks and nuns. Senior churchmen such as bishops and abbots frequently came from noble families and held large estates, so they sat among the elite in political terms. Parish priests, by contrast, might live close to the level of their parishioners.
Knights and gentry
Knights were warriors who served a lord, often in return for land or payment. They ranked below the high nobility but above most commoners. Over time, a class of landowners below the peerage, often called the gentry in England, emerged and took part in local government. The question of who is higher, a knight or a lord, is usually answered by saying that a lord is a noble of higher rank, while a knight is an honorable but lesser position.
Free townspeople and peasants
Many people were free: merchants, craftsmen, shopkeepers and farmers who paid rent to a landlord. Towns grew significantly in the later Middle Ages, and the wealthiest merchants could rival minor nobles in influence. Guilds regulated trades and offered members a degree of protection and status.
Serfs and the bottom of the ladder
Serfs or villeins were tied to a lord’s manor, owed labor and dues and needed permission for certain life events. They were not slaves in the strict sense, because they had some legal protections and customary rights, but their freedom was limited. The proportion of serfs varied: they were common in parts of England and much of continental Europe, and the system faded at different speeds in different places.
Was it really rigid?
Movement between ranks was uncommon but not impossible. A talented churchman could rise from humble origins, a successful merchant could buy land and see his family join the gentry, and a loyal soldier could be knighted. Rank could also be lost through debt, rebellion or disgrace. The Black Death of the mid-fourteenth century killed a large share of Europe’s population, and historians argue that it increased the bargaining power of surviving workers in many regions. In short, the hierarchy was real, but it changed, and it looked different depending on place and century.