The Church attempted to regulate this rather violent society, and eventually a code of honor evolved known as the code of chivalry. (...) Those who aspired to be knights had to have aristocratic ancestors and wealth enough to own warhorses and armor and to provide for a team of supporters.
Overview: Castles in Context - Medieval castles (2005)