Seven years ago, hardline nationalists attacked people at the march, prompting authorities to cancel it until 2015.

Serbian gay right activists marched with their first openly lesbian Prime Minister through the streets of Belgrade on Sunday, protected by police in riot gear as a helicopter flew low overhead.

Senior government officials joined hundreds of revellers on the Belgrade Pride parade an event campaigners said was a test of the conservative Balkan states rights record as it seeks to join the European Union.

Seven years ago, hardline nationalists attacked people at the march, prompting authorities to cancel it until 2015.

The European Union said in 2016 Serbia needed to do more to help minorities including Roma, disabled, lesbian, gay, bisexual and transgender people.

“Serbia respects diversity, my message is that the Serbian government is here for all of its citizens ... the people have the right to march,” Prime Minister Ana Brnabic said as marchers waved rainbow flags and blew whistles around her.

Co-organiser Goran Miletic told reporters human rights had improved over the past decade. “We still have to work a lot more to make it even better,” he said.

Homophobia remains widespread in Serbia and other societies in the Balkans; the head of the Serbian Orthodox Church last week compared homosexuality to paedophilia and incest.

President Aleksandar Vucic, a former ultranationalist who has rebranded himself as a pro-Western reformer, said this week he had “no intention” of joining the march.

Pride parades have largely passed without trouble in Serbia since 2015.