Two California men have pleaded guilty to indecent exposure in Dominica after they were arrested during a stop on a gay cruise of the Caribbean.
Police said they were seen having sex in plain sight of people on land, prompting officers to board the ship and arrest them on Wednesday.
John Robert Hart, 41, and Dennis Jay Mayer, 43, of Palm Springs, said they regretted their actions.
"We humbly apologise to the people of Dominica," both men said during the hearing on Thursday.
The two initially were arrested on suspicion of the local equivalent of sodomy in the eastern Caribbean island, which prohibits sex between two men.
The men's lawyer, Bernadette Lambert, said they were remorseful.
"They were struck by the beautiful mountains, the clean and clear fresh air and were having a few cocktails, and so threw caution to the wind," she told the court.
Chief Magistrate Evaline Baptiste ordered the men to pay a nearly $US900 ($A860) fine after calling them "rogues and vagabonds".
They made no comment after the hearing and police drove the men to the airport after they were released.
The two were aboard the Celebrity Summit cruise ship that had departed Puerto Rico on Saturday with about 2000 passengers. The ship departed for St Barts late on Wednesday, leaving the men behind.
The cruise was organised by Atlantis Events, a California company that specialises in gay travel.
Dozens of islanders packed the courtroom in the capital of Roseau to attend the 30-minute hearing.
Dominica Tourism Minister Ian Douglas said tourists should abide by local laws regardless of their religious or sexual orientation, and that cruise ship officials should make passengers aware of these laws.
"It cannot be the responsibility of Dominica to screen guests and tourists before they come into the country," he said. "It is expected that any time people come to a country, they will respect the laws of the country."
Gay Caribbean cruises have been popular for several years despite hostility to homosexuality on certain islands, especially in Jamaica, Barbados and the Cayman Islands.