Following the suppression of the Janissaries in 1826, Sultan Mahmud II transferred the functions of the old Agha of the Janissaries to the serasker. The latter now became a distinct office at the head of the Ottoman military, combining the functions of a commander-in-chief and a minister of war. He also took over the Janissary Agha's former duties regarding the upkeep of order in Istanbul. Indeed, as the police system developed and expanded with the empire's progressive centralization, it became one of the main duties of the serasker until 1845, when it became a separate agency.
The seat of the serasker and his department (bab-i seraskeri, or serasker kap?s?--"Gate of the serasker") initially was in the Eski Saray, but were transferred to dedicated buildings in 1865. In 1879 the office was renamed to Ministry of War (Harbiye Nezareti) until 1890, when it reverted to its old name; it was finally renamed again to Ministry of War in 1908.
Some notable seraskers: