He gave a Koran box to sultan Murat III (possibly on the advice of Sinan) and was appointed Gate Keeper (Kapıcı).
When in 1591 Mehmed Agha gave the sultan a richly decorated quiver, he was promoted to Chief Bailiff (muhzirbaṣı).
The design of the mosque was based on the Hagia Sophia (Church of Holy Wisdom), the masterpiece of Byzantine architecture built in the 6th century, and on the work of his master, Mimar Sinan.
The design of the mosque is perfectly symmetrical, with a great central dome buttressed by four semi-domes and surrounded by a number of smaller exedrae.
Mehmed Agha, who was the last student of Mimar Sinan, had completed his mission by adding his brighter, colorful architectural style to that of his master teacher.