Puerto Rico Gov. Ricardo Rosselló — whose administration has been roiled by a corruption probe — has apologized for calling former City Council Speaker Melissa Mark-Viverito a “whore” and telling a federal board overseeing the island’s finances to “go f— yourself.”

Rosselló made the comments in leaked text messages published by local newspaper Primera Hora after the FBI arrested former top officials in his government on corruption charges.

In one private chat, he used the Spanish word for “whore” to describe Mark-Viverito — and in another told the Fiscal Oversight Board established by Congress to oversee the territory’s finances to “go f—- yourself,” in English this time, along with middle-finger emojis.

Mark-Viverito is a political ally of San Juan Mayor Carmen Yulín Cruz, who is running for the Popular Democratic Party nomination to challenge Rosselló in next year’s gubernatorial election, according to The Hill.

“I’m the governor of Puerto Rico, but I’m a human being who has his faults,” Rosselló said in a press conference late Thursday after returning from vacation in Europe with his family.

“I ask for forgiveness,” he said, adding that he had been working 18-hour days and venting when he made the comments against the board and Mark-Viverito.

“None of this justifies the words I’ve written,” he said about the excerpts from his chat extracted from a messaging system used by government officials. “My apologies to all the people I have offended … This was a private chat.”

In the chat, Rosselló wrote he was upset that Mark-Viverito had assailed Tom Perez, chairman of the Democratic National Committee, for supporting statehood for Puerto Rico.

Rosselló said he had not yet spoken to Mark-Viverito, who posted a statement on Twitter that said: “A person who uses that language against a woman, whether a public figure or not, should not govern Puerto Rico … this type of behavior is completely unacceptable.”

Those who took part in the chat included Ricardo Llerandi, Puerto Rico’s chief of staff; Christian Sobrino, executive director of Puerto Rico’s Fiscal Agency and Financial Advisory Authority; and Ramón Rosario, former public affairs secretary.

The FBI has arrested Julia Keleher, Puerto Rico’s former education secretary, and five other people on charges of steering federal funds to unqualified, politically connected contractors.

The alleged fraud involves $15.5 million worth of federal funding issued between 2017 and 2019, officials said.

The arrests come just a month after Congress approved a disaster aid bill for the island over the objections of President Trump, who said Puerto Rico’s officials are “incompetent or corrupt.”

Rosselló insisted he would not resign and that he was focused on implementing anti-corruption measures at a time where Puerto Rico is still seeking federal funds to rebuild from 2017’s Hurricane Maria as it remains mired in a 13-year recession.