the mosque had been commissioned in 1558 by selim ii while he was still a şehzade (prince). although the mosque was constructed while mimar sinan held the post of chief architect, the building is not listed in any of his autobiographies. in konya sinan only lists the renovation of a hospice. the construction was completed in 1570 after selim became the sultan. later it was repaired three times; in 1685, 1816 and 1914.