In feudal society, who was responsible for ensuring justice was served and people's homes and lands were protected?

In a feudal society, the nobility, specifically the lords and barons, were primarily responsible for ensuring justice was served and protecting people's homes and lands. They held the authority and power to administer justice through their courts, enforce law and order, and provide protection to their vassals and serfs. Additionally, the king or monarch had a role in overseeing and maintaining order within the realm, often delegating some of these responsibilities to their nobles.