American cruise lines had to scramble this week after the Trump administration announced a new ban on recreational travel to Cuba effective Wednesday.

>> Read more trending news

The ban affects both passenger and recreational ships, yachts and fishing boats, and private and corporate aircraft.

The new restrictions effect some 800,000 bookings with Carnival, Royal Caribbean and Norwegian cruise lines and others, according to the industry group the Cruise Lines International Association, The New York Times reported.

The ban ends a nearly two-decade-old program that allowed Americans to travel to the communist nation under 12 categories, including individual and group "people-to-people" travel, a subcategory of the educational provision that allowed travel to Cuba for cultural and education purposes, according to NPR.

The administration said the travel ban is aimed at keeping U.S. dollars “out of the hands” of the communist government, including “the Cuban military, intelligence and security services.”

"This administration has made a strategic decision to reverse the loosening of sanctions and other restrictions on the Cuban regime," Treasury Secretary Steve Mnuchin said in a press release.

"Cuba continues to play a destabilizing role in the Western Hemisphere, providing a communist foothold in the region and propping up U.S. adversaries in places like Venezuela and Nicaragua by fomenting instability, undermining the rule of law, and suppressing democratic processes," Mnuchin said.

Commercial airline flights, travel for university groups, academic research, journalism and professional meetings are still allowed under the new restrictions, according to The Associated Press.