Under feudalism, who was directly responsible for protecting the people

Nobles or lords were directly responsible for protecting the people under feudalism. They controlled their own territories and maintained armies to defend their lands and those who lived on them.