WARSAW, Poland — Polish police used tear gas and a water cannon Saturday against right-wing extremists who were trying to block the first equality parade in the city of Lublin in eastern Poland.

More than 1,000 lesbian, gay, bisexual and transgender rights activists with rainbow-colored flags and banners gathered Saturday in Lublin for the parade, while around 300 right-wing opponents stood in the march’s way. Police used tear gas, concussion grenades and high-pressured water to disperse them.

Participants attend an equality parade in support of the LGBTQ community in Lublin, Poland, on Oct. 13, 2018. Jakub Orzechowski / Agencja Gazeta via Reuters

The right-wing protesters pelted police with stones and dispersed, but some small groups tried to get through the police cordon that was protecting the march.

The colorful parade then proceeded undisturbed.

The march took place after Lublin’s Court of Appeals on Friday overruled a ban by Mayor Krzysztof Zuk, who had cited security concerns as his reason for banning the parade.

Gay rights parades have been taking place for years in Warsaw, the capital, and many other cities in predominantly Catholic Poland, but the ruling conservative party is not supportive of gay rights groups.

FOLLOW NBC OUT ON TWITTER, FACEBOOK AND INSTAGRAM