the tallest and most elaborate building in the complex, and often also the largest. The number of stories and building layout as perceived from outside the keep rarely corresponds to the internal layout; for example, what appears to be the third story from outside may in fact be the fourth. This certainly must have helped to confuse attackers, preventing them from knowing which story or which window to attack, and likely disorienting the attacker somewhat once he made his way in through a window. The least militarily equipped of the castle buildings, the keep was defended by the walls and towers, and its ornamental role was never ignored; few buildings in Japan, least of all castle keeps, were ever built with attention to function purely over artistic and architectural form. Keeps were meant to be impressive not only in their size and in implying military might, but also in their beauty and the implication of a daimyō's wealth. Though obviously well within the general sphere of Japanese architecture, much of the aesthetics and design of the castle was quite distinct from styles or influences seen in Shintō shrines, Buddhist temples, or Japanese homes. The intricate gables and windows are a fine example of this. On those occasions when a castle was infiltrated or invaded by enemy forces, the central keep served as the last bastion of refuge, and a point from which counter-attacks and attempts to retake the castle could be made. If the castle ultimately fell, certain rooms within the keep would more often than not become the site of the seppuku (ritual suicide) of the daimyō, his family, and closest retainers. Palisades lined the top of the castle's walls, and patches of trees, usually pines, symbolic of eternity or immortality, were planted along them. These served the dual purpose of adding natural beautiful scenery to a daimyō's home, representing part of his garden, and also obscuring the insides of the castle compound from spies or scouts. A variety of towers or turrets, called yagura (櫓), placed at the corners of the walls, over the gates, or in other positions, served a number of purposes. Though some were used for the obvious defensive purposes, and as watchtowers, others served as water towers or for moon-viewing. As the residences of purportedly wealthy and powerful lords, towers for moon-viewing, balconies for taking in the scenery, tea rooms and gardens proliferated. These