>In the pre-Meiji period, nanshoku (男色) relationships inside Buddhist monasteries were typically pederastic. The older partner, or nenja (念者, "lover" or "admirer"), would be a monk, priest or abbot, while the younger partner was assumed to be an acolyte (稚児, chigo), who would be a prepubescent or adolescent boy.[12] The relationship would be dissolved once the boy reached adulthood (or left the monastery). Both parties were encouraged to treat the relationship seriously and conduct the affair honorably, and the nenja might be required to write a formal vow of fidelity.[13] During the Tokugawa period, some of the Shinto gods, especially Hachiman, Myoshin, Shinmei and Tenjin, "came to be seen as guardian deities of nanshoku" (male–male love).>From religious circles, same-sex love spread to the warrior (samurai) class, where it was customary for a boy in the wakashū age category to undergo training in the martial arts by apprenticing to a more experienced adult man. The relationship was based on the typical nenja, who loves, and the typically younger chigo, who is loved.[14] The man was permitted, if the boy agreed, to take the boy as his lover until he came of age.[15]>As Japan progressed into the Meiji era, same-sex practices continued; however, there was a growing animosity towards these practices. The practice of nanshoku began to die out after the Russo-Japanese War. Opposition to homosexuality did not become firmly established in Japan until the 19th and 20th centuries, through the Westernization efforts of the Empire of Japan.[14]