They were convicted under a section of the Penal Code which outlaws deeds intended to wound or insult "the religious feelings of any class of persons" through acts committed in, upon or near sacred objects or places of worship.
In the Edo period, when the vast majority of the objects on display were made, the samurai evolved from hired archers and swordsmen to an elite class of warriors respected for their military skills, education and refinement.