The first armed conflict broke out in 949, when 56 monks from Tōdai-ji staged a protest at the residence of a Kyoto official, over an appointment that displeased them. Protests of this sort continued through the 10th century, often breaking out into brawls in which some participants would be killed. In 970, following a dispute between Enryaku-ji and the Yasaka Shrine of Kyoto, the former established the first standing army of warrior monks. It is not entirely clear whether or not this standing army consisted of monks from Enryaku-ji, or were more like mercenaries, since Ryōgen, the abbot who established this army, also established a code of monastic conduct that prevented monks from leaving Mount Hiei during their twelve-year training, from covering their faces, and from carrying weapons.