Two crew members and 21 divers were aboard the boat.

Receive the latest national-international updates in your inbox

One person has died and another is in critical condition after a rogue wave caused a commercial dive boat to capsize Thursday near Miami, authorities said.

The Thanksgiving day incident happened in Pompano Beach, Fla., at the Hillsborough Inlet as the boat was returning from a dive trip, according to the Broward Sheriff's Office.

Authorities said the captain of the 45-foot Coral Princess catamaran did everything he could to keep the boat upright after a wave hit it from behind.

"Apparently the captain was just trying to come through some rough waters," said BSO spokeswoman Dani Moschella. "It was windy, there were waves rolling in, there was a rogue wave that hit the back of the boat and capsized the boat sending everyone into the water."

Three others were also taken to the hospital but are in good condition, hospital staff said.

"But during the rescue it got pretty dicey and scary because we were told there were more people, there may be people missing, so all of these agencies began searching for people to make sure we had everyone," Sandra King, spokeswoman for Pompano Fire, told NBC 6 South Florida.

She said the inlet is tough to negotiate.

"They say it turns into a wash basin," she said. "It's a rough inlet."