Joko Widodo quietly signed the papers declaring his victory last night, and then left to deliver his first address as President-elect.
He made a call for national unity from the deck of a traditional wooden boat at the port of Jakarta.
Correspondent: Greg Jennett
Speaker: Joko Widodo, Indonesian president-elect
GREG JENNETT: Finally, the numbers were in. The head of the election commission tallied the vote. Indonesia had a new president.
With almost 71 million votes, Joko Widodo and running mate Jusuf Kalla polled 53%. Papers were signed; victory was declared.
Jokowi as he's known had endured two weeks of counting; two weeks in which his opponent Prabowo Subianto had defied polling day predictions that he would lose. Even at the 11th hour, the former General wouldn't go down without a fight.
Prabowo complained bitterly of fraud in the election process and withdrew his scrutineers from the tally room with only hours to go until declaration. Some supporters had suggested Prabowo even wanted to terminate his actual candidacy, which - if legally possible - would effectively have stripped 62 million people of their vote.
He has until Friday to launch an appeal.
(Sound of drums at Jakarta port)
But this was the night for the making of a President - and Joko Widodo had given time and thought to it.
He hurried north to the Jakarta Port, stood beneath the flag on the deck of a wooden boat as laser lighting strobes swept around him and he called for national unity.
JOKO WIDODO (translation): With a humble heart we, Joko Widodo and Jusuf Kalla, call to the nation's brothers and sisters to come back to the faith of Indonesian history as a united nation, one nation - Indonesia.
GREG JENNETT: Jokowi spoke of his aspirations for Indonesia to be the axis of world maritime movements: a key to his economic plan for greater self-reliance
JOKO WIDODO (translation): I hope this win will clear the path to achieve and realise a sovereign Indonesia, politically, economically and culturally self-reliant.
GREG JENNETT: Joko Widodo will be Indonesia's seventh president, and a very different one.
He promises to clean-up and clean-out creaking and corrupt bureaucracies as he did in Jakarta and as the city Mayor of Solo before that.
The hard part begins the day he's sworn-in, in October.