The mosque was built in 1547 by Yakup Ağa, the head steward of Suleiman the Magnificent. The Mosque, one of the elements of the Yakup Ağa Complex, was made of cut stone. The complex was established on an area of 4484 m2 at a point overlooking the city.