For two weeks in July, Puerto Rico erupted in popular anger against Gov. Ricardo A. Rosselló, whose leaked texts revealed an inner circle that jokingly dismissed the island’s woes, including the thousands left dead by Hurricane Maria in 2017.

Infuriated and demanding his removal, protesters took aim at the symbol of Mr. Rosselló’s authority: La Fortaleza.

The executive mansion in San Juan became the target of a widespread mobilization that grew to hundreds of thousands of people and culminated July 24 with Mr. Rosselló’s pledge to resign.

But the events leading up to Mr. Rosselló’s resignation were marked by near-continuous protests and several days of intense confrontations with the police, who blocked off the cobblestone streets of Old San Juan surrounding La Fortaleza.