Conflict has been baked into gay pride marches from the beginning. Even at the first march in Manhattan in 1970, organizers fought over whether it should be called a gay pride march or a gay power march. They even debated whether people who joined in the 51-block march from Greenwich Village to Central Park should be required to follow a dress code.

That first march and rally (“a gay-in” in the parlance of the era) were staged on the first anniversary of the days of uprisings that followed a police raid at the Stonewall Inn in Greenwich Village.

Internal conflicts have become a hallmark of gay pride marches ever since. Organizers have grappled with criticism over the lack of attention to women, bisexuals, racial minorities and, more recently, transgender people. They have weathered fights over how to respond to the AIDS crisis and the fight for marriage equality, and weighed whether accepting lucrative corporate sponsorships was selling out.

Last year, grief and heightened concerns about security in the aftermath of the mass shooting at the Pulse nightclub in Orlando, Fla., washed over many gay pride parades. But never have more parades been canceled or seen their focus shifted so dramatically.

Citing the success of the Women’s March on Washington as inspiration, anti-Trump protesters gathered in more than 100 towns and cities on June 11, including in communities that traditionally hold pride parades later in the year or have never held them before.

In Los Angeles, this year’s parade was abandoned in favor of a protest march that both criticized Mr. Trump and championed the importance of diversity. Tens of thousands of people marched, though not everyone was happy with the change. On social media and in interviews, critics said the event was less joyous and felt exclusionary.