A tamagaki (玉垣) is a fence surrounding a Japanese Shinto shrine, a sacred area or an imperial palace.
[1] Believed to have been initially just a brushwood barrier of trees, tamagaki have since been made of a variety of materials including wood, stone and—in recent years—concrete.
[1][2] If the enclosed area is surrounded by multiple fences, generally the innermost one is called mizugaki (瑞垣 or 瑞籬).
The prime minister, members of both chambers of the diet, and other senior elected officials are allowed to the point just outside the gateway to the inner tamagaki.
Entrance to the inner tamagaki is limited to members of the imperial family and only the emperor and the empress are generally allowed to enter through the innermost mizugaki fence.