Rising waters and ice jams along New York's Hudson River created chaos along the waterway Friday morning when several vessels, including an unoccupied cruise ship, broke free and floated away.

New York State Police said in a series of posts on Twitter that the boats broke loose from their moorings in Troy before floating south down the Hudson River towards Albany.

State police were forced to close several bridges between Troy and Albany during the morning rush hour as a precaution as the boats drifted south.

NEW YORK CITY CYCLIST CAUGHT ATTACKING UBER DRIVER IN TRAFFIC

State police posted an aerial image on Twitter showing the boats floating downriver.

Video footage from a state police drone also showed the four-deck Captain J.P. III cruise ship floating amid several ice floes.

The cruise ship eventually came to rest when it got jammed under a railroad bridge connecting Albany and Rensselaer for several hours.

Amtrak trains had to reduce speeds as they traveled over the bridge until the boat was able to be removed.

HAWAIIAN AIRLINES FLIGHT DIVERTED AFTER FLIGHT ATTENDANT DIES

Two Coast Guard ice-breaking cutters and two commercial tugboats worked to eventually pull the boat free, according to the Associated Press.

The Coast Guard said the ship was freed around 3:30 p.m. and towed back north to Troy.

CLICK HERE TO GET THE FOX NEWS APP

All of the other vessels that drifted downriver were also secured by Friday afternoon, the Coast Guard added.

The Associated Press contributed to this report.