Record-breaking crowds that overwhelmed San Francisco’s transit system and streets following the July Fourth fireworks show have prompted an investigation by the San Francisco Municipal Transit Agency.

The SFMTA, which had urged the public to rely on mass transit for the holiday, admitted it was unprepared for the surge of passengers. Tens of thousands of people — including NBC Bay Area reporter Thom Jensen — were caught in the gridlock after flocking to buses, trains and Waymo autonomous vehicles.

Judson True, SFMTA chief of staff and external affairs director, updated the board on Tuesday regarding the transit and traffic failures that stranded attendees into the early hours of July 5.

“We are still very much working through our lessons learned for July Fourth. But the broad outlines are clear,” True said.

Traffic and transit systems were simply overwhelmed by the volume of people, True noted.

“We have some initial data,” True said. “We know the Muni system, as a whole, carried 41,000 more people than on the previous July Fourth. That’s about a 13% increase.”

While the SFMTA does not regulate general traffic or autonomous vehicles in the city, True explained that the Muni system experienced severe delays caused by the heavy volume of cars on the streets, drivers illegally using bus lanes and breakdowns involving Waymo vehicles.

“Based on our observations that night, we believe it took our shuttles about 90 minutes to make a trip we expected would take 30,” True said.

The following day, Muni riders told NBC Bay Area that commutes took up to three times longer than usual, with some passengers forced to wait hours for buses and trains.

“There’s only so much you can do before you kind of just accept your fate,” BART rider Gloria Zhu said. “It was also just push and shove into the trains. It was all just kind of you move with the people and hopefully get on a train before the last one is out.”

The SFMTA apologized for the widespread delays but emphasized that all riders eventually returned home safely, crediting the dedication of Muni employees. True praised the workers “… who worked well into the morning on July 5 until every Muni customer who was waiting for a shuttle was safely transported.”

City and transit officials are working to fix the logistical failures quickly ahead of Fleet Week, which returns in a couple of months and is expected to draw nearly a million visitors to the city.

An SFMTA spokesman indicated that a more robust report addressing all of the holiday weekend’s transit issues will be released in two weeks.