The Ottoman sultanate was abolished on 1 November 1922, in the midst of the Turkish War of Independence. The office of caliph, however, was retained for an additional sixteen months, during which it was held by Abdülmecid II. He served as caliph under the patronage of the newly founded Turkish Republic until 3 March 1924, when the Grand National Assembly of Turkey formally abolished the caliphate.