The Janissaries used the church as an arsenal (Cebehane) until 1826.[8] It was also used as a warehouse for military equipment and repository for trophies of arms and military regalia taken by the Turks.[8] During the reign of Sultan Ahmet III (1703–1730) it was converted into the National Military Museum in 1726.[8]