Election night in Wales - the major moments
Labour has fallen short of a majority in the Welsh Assembly as UKIP wins its first Senedd seats with all results in.
Former Tory MPs Neil Hamilton and Mark Reckless were among seven UKIP AMs elected via the regional lists.
Labour remains the largest party with 29 of the 60 seats in Cardiff Bay, and suffered the shock loss of Leighton Andrews to Plaid Cymru leader Leanne Wood in Rhondda.
Plaid won 12 seats, the Conservatives 11, and the Lib Dems one.
Here is a montage of the moments during the long night the votes were counted.