It was built by Silahtar Seyyit Mehmet Pasha in 1778.