Joko Widodo elected President of Indonesia

Rival candidate withdraws after making accusations of election rigging

Jakarta Governor Joko Widodo has been declared the winner of Indonesia's hotly contested presidential election.

The election commission said Widodo won 53.15% of the vote with his rival, former general Prabowo Subianto, on 46.85%.

Widodo and his opponent, the former army general Prabowo Subianto, both claimed victory on election day on 9 July, citing unofficial quick counts.

Hours before the official announcement, Prabowo declared his withdrawal from the electoral process, describing the vote as undemocratic, unfair and systematically rigged.

At a press conference in east Jakarta, Prabowo said his team would use their "constitutional rights to reject the implementation of the presidential election, which is legally flawed".

About 130 million votes were cast on 9 July following an intense election campaign.

It was followed by a controversial vote-counting period in which both candidates raised concerns about voting irregularities.