Puerto Rico Governor Ricardo Rosselló could not have imagined his constituents would one day read his texts from nearly two years ago calling a female politician a “whore,” or another the “daughter of a bitch”.

As Hurricane María tore apart his island, the governor — along with nine other men from his administration — shared profanity-laced, misogynistic, homophobic and otherwise incendiary messages to each other on the encrypted messaging app Telegram.

The officials did not hold back: they claimed San Juan Mayor Carmen Yulín Cruz — posed to run against the governor in 2020 — was “off her meds”; they attacked members of a federal control board handling Puerto Rico’s finances; they even mocked singer Ricky Martin’s sexuality.

The chat was a safe space for the island’s male leaders to vent their personal frustrations and belittle apparent enemies. That is until last week, when 889 pages of the private messages were leaked, sinking the governor into the largest political crisis of his career.

Two of the governor’s top former officials involved in the texts have since resigned, just one day after Mr Rosselló’s former secretary of education and five other people were arrested on charges of steering federal money to unqualified, politically connected contractors. Starting Thursday, an anonymous person or people with access to the chats leaked dozens of pages of them to two local outlets. On Saturday, Puerto Rico’s Centre for Investigative Journalism published 889 pages.

Bringing aid to Puerto Rico Show all 20 1 /20 Bringing aid to Puerto Rico Bringing aid to Puerto Rico Crew chief Kenney shelters under the blade of an HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit preparing to take off during recovery efforts following Hurricane Maria, in Isla Grande, Puerto Rico, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico An HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit takes off behind Crew Chief Alexander Blake and his fellow soldiers during recovery efforts following Hurricane Maria, in Morovis, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Crew member Bynum stands in tropical rain as a HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit prepares to take off during recovery efforts following Hurricane Maria, in Isla Grande, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico UH-60 Blackhawk helicopter pilot Chris Greenway receives a hug from a woman thanking him for water as he works with the First Armored Division's Combat Aviation Brigade during recovery efforts following Hurricane Maria, in Verde de Comerio, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico A man carries a case of water away from an HH-60 Blackhawk helicopter after soldiers working with 101st Airborne Division's "Dustoff" unit dropped off relief supplies during recovery efforts following Hurricane Maria, in Jayuya, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Crew chief Alexander Blake from 101st Airborne Division's "Dustoff" unit loads water into a helicopter during recovery efforts following Hurricane Maria, in Isla Grande, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents wait for soldiers in UH-60 Blackhawk helicopters from the First Armored Division's Combat Aviation Brigade to deliver food and water during recovery efforts following Hurricane Maria, in San Lorenzo Reuters Bringing aid to Puerto Rico An HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit lands in a field to avoid lightning during recovery efforts following Hurricane Maria, in Manati, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents hold their hands aloft to signal that they need water as UH-60 Blackhawk helicopters from the First Armored Division's Combat Aviation Brigade fly past during recovery efforts following Hurricane Maria, near Ciales, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Tropical rain splashes on a runway as HH-60 Blackhawk helicopters from 101st Airborne Division's "Dustoff" unit wait for weather to clear during recovery efforts following Hurricane Maria, in Isla Grande, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Pilot Eldwin Bocanegra Torres speaks with residents isolated by landslides in the mountains after unloading water and food from a helicopter during recovery efforts following Hurricane Maria, near Utuado, October 10, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents stand in front of wind-damaged trees as they wait for soldiers in UH-60 Blackhawk helicopters from the First Armored Division's Combat Aviation Brigade to deliver food and water during recovery efforts following Hurricane Maria, in San Lorenzo, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico The contents of a home are seen from the air during recovery efforts following Hurricane Maria near Utuado, October 10, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Thomas looks out of the window of an HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit, loaded with relief supplies, during recovery efforts following Hurricane Maria in Isla Grande, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico A message written on the rooftop is seen from the air during recovery efforts following Hurricane Maria near Humacao, October 10, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico A HH-60 Blackhawk helicopter from 101st Airborne Division's "Dustoff" unit lands in a field during recovery efforts following Hurricane Maria in San Sebastian, October 6, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Sergeant First Class Eladio Tirado, who is from Puerto Rico, looks for a landing spot for a UH-60 Blackhawk helicopter from the First Armored Division's Combat Aviation Brigade, during recovery efforts following Hurricane Maria near Ciales, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Boys carry water away from an HH-60 Blackhawk helicopter after soldiers working with the U.S. Army's 101st Airborne Division's "Dustoff" unit dropped off relief supplies during recovery efforts following Hurricane Maria, in Jayuya, October 5, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Sergeant First Class Eladio Tirado from the First Armored Division's Combat Aviation Brigade, who is from Puerto Rico, speaks with residents as he helps during recovery efforts following Hurricane Maria, in San Lorenzo, October 7, 2017 Reuters/Lucas Jackson Bringing aid to Puerto Rico Residents peek through a fence at helicopters from 101st Airborne Division's "Dustoff" unit that had parked in a locked field during recovery efforts following Hurricane Maria, in Lares, October 6, 2017 Reuters/Lucas Jackson

In the chat group were Luis Rivera Marín, Rosselló’s secretary of state; Christian Sobrino, who held a series of important economic posts; Carlos Bermúdez, a one-time communications aide; Edwin Miranda, a communications consultant; Interior Secretary Ricardo Llerandi; Public Affairs Secretary Anthony Maceira and Elías Sánchez, one-time representative to the board overseeing Puerto Rico’s bankruptcy.

The group mentions then-New York City Council speaker Melissa Mark-Viverito, who had criticised Democratic Party head Tom Perez for opposing Puerto Rican statehood, with Mr Rosselló calling her the Spanish word for “whore.”

Referring to Ms Cruz, the governor says, “she’s off her meds.”

“Either that, or she’s a tremendous HP,” he continues, using the Spanish initials for “son/daughter of a bitch.”

The texts showed more than misogyny and homophobia on the part of the governor and his men, however: the public was exposed to total dysfunction among the top echelons of the island’s government in the middle of a historic storm that left thousands dead.

Federal officials said Wednesday morning that former Education Secretary Julia Keleher; former Puerto Rico Health Insurance Administration head Ángela Ávila-Marrero; businessmen Fernando Scherrer-Caillet and Alberto Velázquez-Piñol, and education contractors Glenda E. Ponce-Mendoza and Mayra Ponce-Mendoza, who are sisters, were arrested by the FBI on 32 counts of fraud and related charges.

The alleged fraud involves $15.5m (£12.5m) in federal funding between 2017 and 2019. Nearly $13m (£10.5m) was spent by the Department of Education during Keleher’s time as secretary while $2.5m (£2m) was spent by the insurance administration when Ms Ávila was the director.

Support free-thinking journalism and attend Independent events

The chats and sprawling criminal indictments have led to massive protests across Puerto Rico, despite members of Mr Rosselló’s pro-statehood New Progressive Party declining to support the beginning of impeachment proceedings against the government.

“This week he’ll meet with mayors, with legislators, and we have to give him this time,” Carlos Méndez Núñez, the president of the commonwealth’s House of Representatives, said Sunday night. “Impeachment isn’t on the table yet. But we reserve the right to evaluate if that’s merited.”