All four of the crew members who were trapped in an overturned cargo ship off the coast of Georgia have been rescued, with the final man being pulled to safety more than a day after the massive ship turned over, authorities said Monday.

The US Coast Guard announced the final rescue in a tweet Monday evening and shared video footage of the final man, shirtless and strapped to ropes from rescuers, being pulled to safety.

“Rescue crews have extracted the final #GoldenRay crew member safely. All crew members are accounted for. Operations will now shift fully to environmental protection, removing the vessel and resuming commerce,” the US Coast Guard Southeast division wrote in the tweet.

The four sailors were aboard a cargo ship transporting more than 4,000 new cars from South Korea when it tipped over around 2 a.m. Sunday. Twenty other crew members, including the American captain, were rescued within hours, but the four, all of whom are South Korean, remained trapped inside the massive craft.

Three of the men “were together in one spot,” a Coast Guard official said. The fourth was stuck “behind glass in an engineering control room.”

“We are trusting that the ventilation in there, that’s meant to be there, is intact,” a US Coast Guard official told reporters before the final man was rescued. But “he unfortunately has not had the same access to food or fresh water as the others had.”

After the first three men were rescued, the official said their condition was “relatively good for having spent close to 34, 35, hours in the conditions they were in.”

“At least two were very ambulatory, able to get themselves out. The third, I don’t have all the” details.

“I know they looked pretty happy,” the official said. “They were subject to some pretty tough conditions over the last day and a half.”

He said food and an air supply made it to them thanks to a roughly 2-foot by 3-foot hole drilled into the side of the hull.

There were “tap-backs throughout the night” from the trapped crew to rescuers, the official said.

That “really motivated the [rescue] team,” he said. “Knowing that people were alive made all the difference.”

The chief engineer on the ship was with rescuers to communicate to the trapped crew in Korean, he said.