Cruise ship anchored off the shore of Grand Cayman Island, Royal Caribbean cruise liner Mariner of the Sea

Royal Caribbean's Oasis of the Seas is returning to a Florida port a day early and giving passengers full refunds of their fare after 277 guests and crew members were hit with an outbreak of Norovirus as it sailed to Jamaica.

Cruise line spokesman Owen Torres told The Associated Press "we think the right thing to do is get everyone home early rather than have guests worry about their health."

He says the ship will return to Port Canaveral on Saturday. It sailed from there Sunday on a seven-day Caribbean cruise.

Passengers took to social media on Wednesday, tweeting they were forced to stay onboard after docking in Falmouth, Jamaica, for what was supposed to be a day of excursions.

Torres says returning a day early gives the cruise line "more time to completely clean and sanitize the ship" before it sails again.

WATCH: Royal Caribbean bets big on Miami