Sharif Sheikh Ahmed took office on 31 January 2009, after being elected by the presidential election held in January 2009. Ahmed's term as President of Somalia officially ended In August 2012, concurrent with the conclusion of the transitional federal government's mandate and the start of the federal government of Somalia. He was succeeded in office by General Muse Hassan, who had been serving in an interim capacity.
