The presidential election of December 2007 ended in an impasse. Kenya's electoral commission declared Kibaki the winner, but Raila and ODM claimed the victory. Mwai Kibaki was hurriedly sworn in as the president December 2007 presidential election. Following the election and dispute over the result, Kenya was engulfed by a violent political crisis. Kibaki and Odinga agreed to form a power-sharing government. In the grand coalition Cabinet named on 13 April 2008 and sworn in on 17 April, Ruto was appointed as Minister for Agriculture. Ruto also became the Eldoret North's Member of Parliament from 2008 to 4 March 2013.