[1] Structurally, the sanmon of a first rank temple as Nanzen-ji in Kyoto is a two-storied, 5x2 bay,[3] three entrance gate (see photo below).
[1][4] Entering, pilgrims can symbolically free themselves from the three passions of ton (貪, greed), shin (瞋, hatred), and chi (癡, foolishness).
[5] The fact the gate has entrances but no doors, and cannot therefore be closed, emphasizes its purely symbolic function as a limit between the sacred and the profane.
The second story of a first or second rank temple usually contains statues of Shakyamuni or of goddess Kannon, and of the 16 Rakan, and hosts periodical religious ceremonies.
[1][2] The side bays of sanmon of the first two ranks may also house statues of the Niō, wardens who are in charge of repelling evil.