By the twelfth century the head of the reigning (and thereby most powerful) family, now called the Shogun, offered the emperor, who was worshiped as the direct descendant of the Sun Goddess, military protection of his samurai in exchange for divine sanction of the entire ruling class. A deal was struck. In time the code of the samurai, initially followed by only a small percentage of the population, penetrated deep into the Japanese culture and became the model of honorable behavior among all young men.

