A Mexican navy tall ship plowed into New York’s Brooklyn Bridge Saturday evening, snapping its masts and killing two crew members.

New York Mayor Eric Adams said that of the 19 crew members hospitalized, two were in critical condition and two had died. The bridge sustained no structural damage, the Coast Guard and New York Police Department said.

The ARM Cuauhtémoc, a training vessel for Mexican navy cadets, had 277 crew on board and was on its way to Iceland after a stop at New York’s South Street Seaport. Flying a giant Mexican flag and decked in strings of lights, the ship slammed into bridge, shearing off the top of its masts as crew members hung in the rigging.

New York officials said there appeared to have been a mechanical problem aboard the vessel. The National Transportation Safety Board will investigate the crash, they said.