The most recent period of direct rule came to an end on 8 May 2007 when power was restored to the Northern Ireland Assembly following April elections and a power-sharing agreement among major parties.