On June 20, 1639, Maeda Toshitune was allowed by the third Shogun Iemitsu to retire and to divide his three-domain han into 3 feudal domains of Kanazawa, Toyama, and Daishoji, each of which was inherited by his three sons. As an exception to the Military Houshould Law, the Shogun also allowed Toshitune to hold his own castle of Komatsu Castle. Toshitune started rebuilding the castle, where the construction activities were estimated to last until his death in 1658. Unlike his former castle of Kanazawa Castle surrouned by existing residential districts, Komatsu Castle, which had been built as a small castle by previous feudal lords, was surrounded by huge area of marsh overgrown with reeds, and, consequently, Toshitune was able to build a new castle just as he wanted. It was this castle which played a role of Kaga Han's headquaters, in executing major agrarian and tax reforms called Kaisaku-ho, from 1651 until 1657. In April of 1657, Toshitune reported to the Shogun the successful completion of Kaga han's reform policy, where the framework-raising ceremony for Komatsu Tenmangu was held on February 23, 1657.
Geomantic principles employed in constructing Komatsu Castle and Komatsu Tenmangu with its shrine layout are summarized as follows:

For refences, go to 。。

These may verify that Komatsu Tenmangu was built to provide spiritual protection for Komatsu Castle.

Komatsu Castle with the area of 496112 m2 was erected by Maeda Toshitune (1593-1658), after his retirement from Kaga domain lord, and all the structures but the castle's main compound (Tenshudai, shown on the left) were demolished or removed after the Meiji Restoration.

1) Komatsu Castle was protected on all sides by watercourses, with the app;roach mainly from the south, where Geomantic (feng shui) criteria employed in Komatsu Castle is explained in reference to the oldest garden-making classic entitled "Sakuteiki" (作庭記).
2) The first Geomantic principle employed in determining shrine layout is in its sitting direction. That is, the shrine is placed in the northeast direction (Kimon, 鬼門) of Komatsu Castle, where historical documents on Kimon are also explained.
3) The second principle is embedded in Winter Solstice Alignment of shrine buildings.
4) The third principle is in the placement of the fifteen-storied stone tower facing the water source of Komatsu Castle.
5) The final Geomantic principle is embedded in the relationship between the Great Plan described in Shang Shu (尚書) and the fifteen-storied stone tower.

Remains of Komatsu Castle

Komatsu Castle and Shrine Layout