An out-of-control boat in Florida ended up making a crash landing after going airborne over a dock in a moment that resembled a scene out of an action movie.

The Martin County Sheriff's Office said the wild scene unfolded Friday after three men said they were doing a "photo shoot" aboard the 24-foot vessel in the St. Lucie River when they somehow fell overboard. 

The incident unfolded in the late-afternoon just south of the Stuart Causeway in Stuart.

MAN GETS THROWN FROM BOAT AFTER MARRIAGE PROPOSAL FAIL IN VIRAL VIDEO

After the group of men fell out of the boat, the unmanned vessel continued to circle them as they tried to stay afloat in the river.

Three men who fell off the boat were then circled by the runaway vessel, forcing them to dive underwater to avoid serious injuries. (Martin County Sheriff's Office)

"The three male occupants told MCSO marine deputies that they were forced to dive underwater numerous times because the boat continued to circle around, nearly running them over," the sheriff's office said.

The out-of-control vessel eventually straightened itself out – then traveled at a "high rate of speed," racing toward a concrete dock near the 1500 block of St. Lucie Boulevard in Stuart.

Footage released by the sheriff's office shows the boat hitting the dock, going airborne, and then coming to rest after smashing into another dock.

The out-of-control boat made a crash landing after going airborne over a dock in Stuart, Fla. on Friday. (Martin County Sheriff's Office)

"MCSO Air-1 Pilot Justin Lundsteadt stayed over the vessel to direct marine units to the passengers. Meanwhile, Chief Pilot, Deputy Doug Newsom captured this unbelievable video," the sheriff's office said.

COAST GUARD HONORS FLORIDA BOY, 11, IN GRANDPARENTS' RESCUE AT SEA

The three men were able to swim to a nearby sailboat and avoided serious injuries.

The out-of-control boat made a crash landing after going airborne over a dock in Stuart, Fla. on Friday. (Martin County Sheriff's Office)

"One of the men suffered minor injuries," the sheriff's office said.

CLICK HERE FOR THE FOX NEWS APP

An investigation into the cause of the incident was turned over to the Florida Fish and Wildlife Conservation Commission, which investigates boating accidents.