Sultan in the palace. No one could pass this gate without the authority of the Sultan. Even the Grand Vizier was only granted authorisation on specified days and under specified conditions. The gate was probably constructed under Mehmed II in the 15th century. It was redecorated in the rococo style in 1774 under Sultan Mustafa III and during the reign of Mahmud II. The gate is further decorated with Qur'anic verses above the entrance and tuğras. The ceiling is partly painted and gold-leafed, with a golden ball hanging from the middle. The sides with baroque decorative elements and miniature paintings of landscapes. The Sultan used this gate and the Divan Meydanı square only for special ceremonies. The Sultan sat before the gate on his Bayram throne on religious, festive days and accession, when the subjects and officials perform their homage standing. The funerals of the Sultan were also conducted in front of the gate. On either side of this colonnaded passage, under control of the Chief Eunuch of the Sultan's Harem (called the Bâbüssaâde Ağası) and the staff under him, were the quarters of the eunuchs as well as the small and large rooms of the palace school. The small, indented stone on the ground in front of the gate marks the place where the banner of Muhammad was unfurled. The Grand Vizier or the commander going to war was entrusted with this banner in a solemn ceremony. Third Courtyard Beyond the Gate of Felicity is the Third Courtyard (III. Avlu), also called the Inner Palace (Enderûn Avlusu), which is the heart of the palace. It is a lush garden surrounded by the Hall of the Privy Chamber (Has Oda), the treasury, the harem and the library of Ahmed III. The Third Courtyard is surrounded by the quarters of the Ağas, page boys in the service of the sultan. They were taught the arts, such as music, painting and calligraphy. The best could become the Has Oda Ağası or high-ranking officials. The layout of the Third Courtyard was established by Mehmed II. While Mehmed II would not sleep in the harem, successive sultans after him became more secluded and moved to the more intimate Fourth Courtyard and the harem section. The Hünername miniature from 1584 shows the Third Courtyard and the surrounding outer gardens. Audience Chamber The Audience Chamber, also known as the Chamber of Petitions (Arz Odası), is right