 Following his resignation President Kikwete was obliged to dissolve his cabinet as required by the Constitution and with minimum delay, constituted a new one under a new Prime Minister, Mizengo Pinda.After the ruling CCM failed to select him as its candidate for the October 2015 presidential election, he left the party and stood instead as an opposition candidate.He was defeated in the election by CCM candidate John Magufuli.