The Kongokai (Diamond realm) mandala is based on the Vajrasekhara Sutra, while the Taizokai mandala is based on the Mahavairocana Sutra. These are both esoteric Buddhist sutras.
These two mandalas became the central part of Shingon practice. They are still used today, as Mount Koya remains as the spiritual center of Shingon.