and was the MP for Mid Ulster from 1997 until his resignation in 2013. Like all Sinn Féin MPs, McGuinness abstained from participation in the Westminster Parliament. Following the St Andrews Agreement and the Assembly election in 2007, he became deputy First Minister of Northern Ireland on 8 May 2007, with the Democratic Unionist Party (DUP) leader Ian Paisley becoming First Minister. On 5 June 2008, he was re-appointed as deputy First Minister to serve alongside Peter Robinson, who succeeded Paisley as First Minister. McGuinness previously served as Minister of Education in the Northern Ireland Executive between 1999 and 2002. He was Sinn Féin's candidate for President of Ireland in the 2011 election.