Built by the Emperor Akbar (ruled 1556-1605) between 1565-79, the great red sandstone fort at Agra dominates a bend in the Yamuna river. It is a strong military edifice which is also embellished with fine architecture. Beautiful pavilions and balconies grace terraces overlooking the river. The Moti Masjid or Pearl Mosque, topped with three bulbous domes, is one of the gems of the buildings within the fort. Located north of the Diwan-i-Am or Hall of Public Audience, it was built in 1654. A red sandstone gateway leads into its interior of pure white marble. The mosque was built inside the Agra fort in 1654 during the reign of Shah Jahan (r. 1627-1558). Built principally as a military establishment by Akbar in 1565, the red sandstone fort at Agra was partially converted into a palace during Shah Jahan's time. The sanctuary is roofed with three bulbous domes and a series of Hindu-style domed kiosks along the parapet. It has seven bays divided up into a number of aisles and supported by piers and lobed arches. The extensive use of white marble facing is a typical stylistic feature of Shah Jahani architecture.