The allegiance of this highly privileged and prestigious group was ensured by cementing their ethical principles in the code of bushido,  the way of the warrior : loyalty to one's master, defense of one's status and honor, and fulfillment of all obligations.
Every member of the group respected the way of the warrior.