 He was Secretary General of the NRM from November 2005 to January 2015.Mbabazi's childhood friend Ruhakana Rugunda was appointed to replace Mbabazi as Prime Minister on 18 September 2014, by President Yoweri Museveni.This move was seen by many as Museveni's way of punishing Mbabazi for his rumoured presidential run.