PORTLAND — Municipal workers removed a nest today that two ospreys were building at the end of the city’s new megaberth for cruise ships.

City officials took action after a biologist with the Maine Department of Inland Fisheries and Wildlife said the nest could be removed if it contained no eggs, according to Nicole Clegg, city spokeswoman.

The feathered pair was building the nest at the end of 1,000-foot-long Ocean Gateway Pier II, atop an electronic capstan that dock workers use to wind a ship’s mooring lines to a nearby bollard.

The municipal employees dismantled the yard-wide nest around noon and threw more than a dozen bundles of branches and sticks into Portland Harbor.

“We have been instructed by MDIFW that if there are no eggs to remove the nest as soon as possible,” Clegg said in an email to the Portland Press Herald.

Clegg said city workers will place something on the surface of the capstan, “either a pitched cover or spires, to deter the birds from using that location for nesting in the future.”

Completed last September, the megaberth is scheduled to serve its first cruise ship in September.

Scott Lindsay, a state wildlife biologist, said the ospreys will have plenty of time to build a nest elsewhere.