Step-by-step explanation:
its the second one. People needed a source of protection from many invading threats. As a result, they invented a system in which people of higher classes provided protection for lower classes in return for their loyalty to them.