Ahmed I he ordered it built after the peace of Zsitvatorok to appease the wrath of Allah after the defeats of his army against the Safavid Empire. But its construction generated a great controversy. The money from the municipal coffers was used, so a sector of the city, ''the ulemas'', did not agree.