Joko Widodo's re-election as president has sparked chaos on the streets of Jakarta.
Supporters of the opposition candidate - Prabowo Subianto - were met with tear gas on Wednesday (May 22).
They threw fireworks and debris in return.
The country had been awaiting official results since the April 17 election, but on results day Subianto refused to concede defeat.
He said he believes there had been widespread cheating in the polls, and was making legal efforts to, quote, "defend the mandate of the people." An election supervisory agency said there was a lack of evidence to support claims of systematic cheating, and independent observers have said the poll was free and fair.
The result released by the General Election Commission gave Widodo more than 55% of the votes.
Some schools and offices in the capital have been closed down this week.
The government also says dozens of militant Islamists have been detained - suspected of planning attacks in the turmoil.
In a bid to quell the unrest, Indonesia introduced curbs on social media on Wednesday.
They say it's designed to prevent the spread of hoaxes and fake news, some calling for violent post-election attacks.
The move imposes limits on the ability to upload videos or photos on social media platforms.