After the Peace of Zsitvatorok and the crushing loss in the 1603-1618 war with Persia, Sultan Ahmet I, decided to build a large mosque in Istanbul to reassert Ottoman power.
It caused the anger of the ulema, the Muslim jurists.