Huge crowds, including Western diplomats, have marched through central Kyiv for the city's annual Gay Pride parade. Authorities deployed a heavy police contingent and National Guard members to protect the participants.
More than 8,000 people joined the Gay Pride procession through Ukraine's capital on Sunday, the biggest ever in the country's history.
Demonstrators dressed in colorful clothing waved rainbow flags and held up banners reading "Diversity is beautiful" and "Human rights = happy country."
"We go out to show that there are a lot of us and we have a lot of support," Ruslana Panukhnyk, director of the NGO KyivPride, which organizes the parade, told the Agence France-Presse news agency.
A group of soldiers in uniform from the war with Russia-backed separatists in the east also marched at the event. Viktor Pylypenko, who led the column of troops and veterans, said there were gay soldiers on the front lines who wanted to attend.
"There are lots of homophobes and because of these homophobes and their homophobic commanders these people cannot come out," he said.
Police and members of the National Guard lined the streets to keep the peace as several hundred far-right and Orthodox activists staged a counterprotest nearby. Authorities said earlier they had arrested nine people on suspicion of preparing "provocations" against the parade.
"We are for God and Ukraine," Oksana Korchynska, a member of the opposition Radical Party, told the Reuters news agency from the counterdemo on Sunday. "For us it is important that people who have a sexual sin do not make propaganda out of it."
Sunday's march was the first since the election of Ukrainian President Volodymyr Zelenskiy. On Sunday morning, Zelenskiy's office urged the police to preserve the safety of protesters and pointed out that the country's constitution guarantees equality and freedom.
Several Ukrainian politicians and foreign diplomats also took part in the event. One of them, British Ambassador to Ukraine Judith Gough, wrote on Twitter: "Thank you to the police and other law enforcement agencies for protecting today's Pride event."
William B. Taylor, charge d'affaires at the US Embassy in Ukraine, wrote: "We stand with all Ukrainians striving for equality and non-discrimination."
Homophobia still widespread
Support for LGBT rights has grown in the former Soviet state since a Western-backed government came to power in 2014. But homophobic attitudes and attacks on gay people in Ukraine are still relatively common. Opponents of gay rights argue homosexuality goes against the country's traditional culture.
This year's march was relatively peaceful compared with previous years. Violent clashes broke out at the parade in 2015, while last year more than 50 nationalist activists were detained following scuffles.