The priest Kūkai (best known by the posthumous title Kōbō Daishi, 774–835) journeyed to China to study Shingon, a form of Vajrayana Buddhism, which he introduced into Japan in 806. At the core of Shingon worship are the various mandalas, diagrams of the spiritual universe that influenced temple design. The temples erected for this new sect were built in the mountains, far away from the court and the laity in the capital. The irregular topography of these sites forced their designers to rethink the problems of temple construction, and in so doing to choose more indigenous elements of design.