Shah Jehan was a contemporary of Louis XIV of France, le Grand Monarque, and the Thirty Years War was then ravaging central Europe. As Versailles took shape, the Taj Mahal and the Pearl Mosque grew up in Agra, and the Jame Masjid of Delhi and the Diwan-i-Am and the Diwan-i-Khas in the imperial palace.