The mosque had been commissioned in 1558 by Selim II while he was still a şehzade (prince). It was presented to his father, Sulleyman the Great.