Puerto Rico doesn’t want political turmoil to deter tourists from its picturesque beaches.

Discover Puerto Rico, the island’s tourism agency, has tried to allay fears that vacations may be ruined by recent protests over Gov. Ricardo Rosselló, who announced his resignation Wednesday in the wake of a leaked text message scandal.

“Puerto Rico remains open for tourism and changes to government leadership on the Island do not change this,” the agency said.

Mass protests have formed over the last two weeks after a series of offensive texts between Rosselló and other members of the administration were leaked to the press. In one of the messages, Rosselló referred to former New York City Council Speaker Melissa Mark-Viverito, who is from Puerto Rico, as a “whore.”

“With the recent protests on the Island, calling for the Governor’s resignation, a resolution was needed for the Island to continue its strong path to recovery,” the tourism agency said. “We are encouraged by the accounts of many travelers who arrived on the Island during the last two weeks to enjoy the Island’s gastronomy, attractions and cultural offerings, and we are welcoming new travelers each day.”

But local tourism has already taken a hit from the political unrest in the island destination.

Earlier in the week, Royal Caribbean rerouted two ships headed to Puerto Rico — as thousands of the island’s residents marched in protests, NBC News reported.

The cruise line notified passengers on the Empress of the Seas and Harmony of the Seas that they would be rerouted to the British Virgin Islands and St. Maarten, respectively.

Royal Caribbean said it will continue to follow recent events out of the island.

“We are currently monitoring the situation in San Juan, PR and will advise our guests of any itinerary changes if necessary,” a Royal Caribbean rep told The Post on Thursday.