Pride Edinburgh has banned political parties from this year's festival over a "lack of meaningful action" in response to the recent Supreme Court gender ruling.
Organisers said politicians had failed to speak out or protect transgender people after the UK's highest court said a woman was defined by biological sex under equality law.
They said this was not a ban in individuals, and politicians "who support the values of equality, visibility and justice" could still join the march in a personal capacity.
But parties will not be allowed to register for a space or host a stall at the city's annual LGBTQ+ march on 21 June, and politicians will be banned from making speeches.
It follows announcements earlier this week by Pride groups in Glasgow, Birmingham, Brighton, London and Manchester in a gesture of solidarity with the transgender community.