A damaged house is visible among stripped trees near Caguas, Puerto Rico. (Carlos Barria/Reuters)

When things went bad during Hurricane Maria, they went bad all at once, across this entire island. Suddenly, everything was dysfunctional, including the power grid, the cellphone towers, the banking system. Even the disaster managers, the professionals in charge of responding to hurricanes, were forced to evacuate the buildings where they had sheltered during the powerful storm.

They shifted operations to the convention center here, an improvised maneuver that was just one of the reasons the government struggled to meet the challenges Maria presented. They were in the dark. The island’s residents were in the dark. No one knew the extent of what had happened — or what was happening — for days.

“Everything collapsed,” said Héctor Pesquera, the Puerto Rico governor’s director of safety and public protection. “Everything collapsed simultaneously.”

Nearly two weeks after Maria caused a historic catastrophe and thrust Puerto Rico into a humanitarian crisis, President Trump on Tuesday is scheduled to make his first visit to the island since the storm hit on Sept. 20.

Trump is expected to meet with Gov. Ricardo Rosselló, who has repeatedly expressed appreciation for federal support from Washington. It is unclear whether Trump will encounter San Juan Mayor Carmen Yulín Cruz, who has sharply criticized the federal effort, saying that Puerto Ricans are dying while the nation’s bureaucracy stumbles.

Trump has tweeted attacks on Cruz’s leadership, and the president has repeatedly said that stories highlighting the slow response to the crisis are fake news.

That view was echoed, if in a more subtle way, by the Federal Emergency Management Agency’s administrator on Monday after he flew to the island and, as he told reporters, saw signs of civic vibrancy in San Juan. William “Brock” Long said he managed to get a cellphone signal when he was 20 minutes outside the capital and heading to a remote area.

“As we were going down the road, I saw numerous fuel trucks with security, I saw numerous water trucks with security,” he said. “I saw a lot of resilient Puerto Ricans. I saw neighbors helping neighbors. I didn’t see anybody in a life-threatening situation at all.”

The statutory requirements and protocols of disaster management are complex. The Defense Department has authority to send some of its assets where it sees fit, and in the case of Hurricane Maria did not initially deploy as many ships, sailors and soldiers as it could have. But the Defense Department is supposed to support, and follow the guidance of, FEMA. FEMA, in turn, is supposed to support the local and state (and in this case, territory) government.

Political sensitivities enter the calculation — with governors invariably wanting to show command and control — as was the case with Rosselló, who on Thursday took pains to say that the government of Puerto Rico is fully in charge of the Maria disaster response.

“The last thing a political leader wants to admit is that the problem is beyond their control,” said retired Coast Guard Adm. Thad Allen, who played a critical role in the federal responses to Hurricane Katrina and the 2010 oil spill in the Gulf of Mexico. “There has to be a frank, unvarnished conversation about the scope of the problem and how to deal with it. It is politically hard but operationally essential.”

Cars in Vega Alta pass power-line poles downed by Hurricane Maria. (Ricardo Arduengo/AFP/Getty Images)

Even before Maria, Puerto Rico had been hobbling along economically amid a financial crisis and at the same time convulsing politically. Now comes the longer-term question of whether the island can rebuild its economy and stave off wholesale flight of its residents to the mainland.

Rosselló, trying to steer attention toward the broader issues facing Puerto Rico, said on Sunday: “I invite you to reflect on why Puerto Rico is in the current state of disadvantage and inequality. It’s not something that happened just a few months or few weeks before this storm. It is a condition that has happened for more than a century in Puerto Rico. . . . I invite you to reflect on the reality that even after the storm hit Puerto Rico, even when it was evident that it was a disaster in the United States, only half of our U.S. citizens knew that Puerto Ricans were U.S. citizens.”

Roselló and other officials have not denied that the government struggled to provide food, water, medicine and fuel in the wake of Maria, but they have pointed to the challenges of being an island 1,000 miles from the mainland, as well as the communication breakdowns they experienced.

The scale of the disaster became clear only when mayors from across the island arrived in San Juan on Sept. 23, three days after the storm, for a meeting at the convention center at which they delivered dire reports in person. The U.S. government did not ramp up all of its capabilities until six days had passed. Last Tuesday, the Pentagon dispatched an Army one-star general to the island and then quickly elevated that command by sending in a three-star general.

“Every day we get more and more situational awareness,” said John Rabin, the acting administrator for the FEMA division that oversees Puerto Rico. “As soon as we recognized there was a need for more resources and more capability, we ordered up that proverbial bigger boat.”

Asked if the response was slow, he went silent for a few beats.

“It’s not that it was ‘slow’; it’s ‘complex,’ is the way I would describe it,” Rabin said.

He cited one example of the way the response is evolving: FEMA and the Puerto Rico emergency managers sent relief supplies to 11 locations around the island. But the lack of communication meant that many people were not showing up for the supplies. Officials since have been using military helicopters to carry aid to rural locations.

The difficulty in responding to Maria has revealed how unique each disaster is — and how resistant to a one-size-fits-all approach. Hurricane Harvey, for example, created a flooding disaster in Houston and other cities in southern Texas, and thousands of people had to be rescued from their homes, often by civilians using private boats.

For Maria, numerous Coast Guard and FEMA urban-search-and-rescue teams were on hand or arrived quickly. But it soon became clear that what people needed most were life-sustaining provisions — including water, food and diesel fuel for generators — that the search-and-rescue teams didn’t have.

Senior officials in the Pentagon debated sending additional assistance in the first few days after the storm, including deploying a 1,000-bed hospital ship, the USNS Comfort, under their own authority. They decided instead to fill requests from the Puerto Rico government to send a couple of 50-bed hospital units that could be set up on shore.

Long visited Puerto Rico last Monday, and afterward the Pentagon’s effort changed. The next day Long appeared at the White House and announced the deployment of the Comfort.

Several U.S. military officials with knowledge of Puerto Rico operations said afterward that they hadn’t known about the ship’s deployment. The Comfort was not yet ready to sail.

Military officials said they have filled every request they have received in a timely fashion. The Navy had two amphibious combat ships, the USS Kearsarge and the USS Oak Hill, already in the region in response to Hurricane Irma, and after maneuvering to avoid Maria they sailed to Puerto Rico with a complement of Marines and sailors aboard. The Coast Guard had at least nine ships off the Puerto Rico coast shortly after the storm.

The unpredictable path of the storm played a role in the decision to send some ships, notably the USS Iwo Jima and USS New York, to ports on the mainland rather than to Puerto Rico in advance of Maria, the officials said. When pressed, they acknowledged that the ships could have steered clear of the storm while at sea and responded to the storm sooner.

As of Monday, there were 10 Army helicopters, 17 Navy and Marine Corps helicopters, and 10 National Guard helicopters involved in the Maria response, with an additional 12 Army Black Hawk helicopters and four MV-22 Osprey arriving soon, the Pentagon said.

Lamothe and Achenbach reported from Washington.