It was close: eye-wateringly, stomach-churningly, nail-bitingly close.
But one vote is enough. Any politician will tell you that and Ed Miliband won by many more votes than that.
He won it thanks to having the nerve, the chutzpah and the sheer ruthlessness to take on the favourite and the candidate of the party establishment who, just to complicate matters a tad, happened to be his big brother.
He won thanks to a promise to a party weary of battles between Blairites and Brownites to end the New Labour era, to disown the Iraq war and to reconnect with Labour's traditional working-class supporters.
He won thanks, though, to an electoral system which meant that people's second and third preferences count as much as their first and thanks to union support. His brother David won the first three rounds of voting and won more support amongst MPs and MEPs and ordinary party members.
What clinched the contest was the votes of union members - a fact that will be deployed ruthlessly by his political enemies.
That is just one of many hurdles Labour's new young leader will have to cross.
The first, though, is to repair relations with the man whose forced smiles turned to barely suppressed tears - the man who had been told he was his party's next leader for many years now - his brother David.
PS I can now pause to wipe the egg off my face. After the first round of voting I rashly said that it looked as if David might have done enough to win (his figures outperformed the recent polls). That's the perils of live telly for you.
Update 19:15: David Cameron called Ed Miliband from Chequers tonight to congratulate him on his victory.
The call lasted around three minutes. The prime minister told the new leader of the opposition that people would tell him that his was "the worst job in the world" but that it was not that bad. David Cameron promised to keep Mr Miliband in touch with matters of national security.
Ed Miliband responded by saying that he would lead "a responsible opposition" which would work with the government where they could.
The two men talked also about their families. David Cameron's fourth child was born a few weeks ago and Ed Miliband's partner Justine is expecting a second child in November.