Overnight, Indonesia’s Constitutional Court made a “final and binding” decision that confirmed Joko ‘Jokowi’ Widodo as the country’s next president and dismissed the appeal mounted by his rival Prabowo Subianto.

It ends months of uncertainty after Jokowi won the poll on 9 July and confirms the 22 July declaration by the Electoral Commission that Jokowi had won 53 per cent of the vote. Jokowi will now be sworn in as Indonesia’s next president on 20 October.

Prabowo was joined at the court by hundreds of supporters, some of whom clashed with police. Around 50,000 police and military personnel are on standby in case of more violence, authorities say.

Photographer Ray Yen was there to capture some of the drama and colour at the court yesterday. Following are a selection of his photos.

Some of Prabowo's 'scooter gang' get ready to roll to the court.

Some of Prabowo’s ‘scooter gang’ get ready to roll to the court.

On the way to the court.

On the way to the court.

Colourful PKS supporters.

Colourful PKS supporters.

Another colourful PKS supporter.

Another colourful PKS supporter.

Prabowo art.

Prabowo art.

More Prabowo art.

More Prabowo art.

Confidence?

Confidence?

Religion and military go hand-in-hand>

Religion and military go hand-in-hand.

A calm court.

A calm court.

Queuing to get inside the Constitutional Court.

Queuing to get inside the Constitutional Court.

Prabowo's supporters light a fire.

Prabowo’s supporters light a fire.

Some of Prabowo's supporters.

Some of Prabowo’s supporters.

Behind the police lines.

Behind the police lines.

View of the demonstration from behind the barricade.

View of the demonstration from behind the barricade.

Truck used by Prabowo supporters to attempt a barricade break through.

Truck used by Prabowo supporters to attempt a barricade break through.

Tear gas at the ready.

Tear gas at the ready.

Prabowo's supporters meet a wall of police.

Prabowo’s supporters meet a wall of police.

Police aren't impressed with Prabowo's supporters.

Police aren’t impressed with Prabowo’s supporters.

Police chat while holding off Prabowo's supporters.

Police chat while holding off Prabowo’s supporters.

Prabowo's supporters refuse to give up.

Prabowo’s supporters refuse to give up.

No appetite for a fight. Some of Prabowo's supporters decided to leave after lunch.

No appetite for a fight. Some of Prabowo’s supporters decided to leave after lunch.

Spent tear gas canister.

Spent tear gas canister.

Prabowo's supporters return.

Prabowo’s supporters return.

A new standoff.

A new standoff.

He promised revolution.

He promised revolution.

Trying to break through the barbed wire.

Trying to break through the barbed wire.

Foreign journo after teargas.

Foreign journo after teargas.

TV journalist reports on the court ruling and clashes.

TV journalist reports on the court ruling and clashes.

Stay away.

Stay away.

On the wire.

On the wire.

Shades and headphones. Security forces?

Shades and headphones. Security forces?

Last stand?

Last stand?

After the clashes.

After the clashes.

Most of Prabowo's supporters had left by 7pm.

Most of Prabowo’s supporters had left by 7pm.

The end of the night.

The end of the night.

One of Prabowo's chief supporters and protagonists on the day. He promised he and they will be back.

One of Prabowo’s chief supporters and protagonists on the day. He promised he and they will be back.

See Ray’s full set of photos at his Facebook page.

Ray Yen is a graduate of the Australian National University’s College of Asia and the Pacific currently living in Jakarta.