Seven people have been detained following a security incident on an oil tanker off the Isle of Wight, Sky News understands.
The Ministry of Defence (MOD) tweeted that according to “initial reports”, the crew are safe and well.
Sky News’ defence correspondent, Alistair Bunkall, said Special Boat Service (SBS) commandos boarded the Nave Andromeda and regained control.
Authorisation was given by the defence secretary and the home secretary, the MOD said.
Bunkall added that the operation had been “pretty swift” – what is known in military terms as a “flash to bang”.
It was all over in seven minutes, maritime risk expert Chris Parry told Sky News, with the commandos being roped on board.
Sky’s home affairs correspondent, Mark White, said about 16 SBS personnel boarded the tanker following an incident lasting about 10 hours.
Two Royal Navy Merlin medium lift helicopters were involved, along with two Royal Navy Wildcat helicopters.
A Royal Navy frigate, believed to be HMS Richmond, was on standby to assist.
“All crew on board have been accounted for,” White added.
The SBS is based in Poole and the operation was in its “back yard”, Bunkall said.
Tobias Ellwood, chairman of the Commons Defence Committee, said the incident would have triggered a “multi-agency alarm” leading to “well-rehearsed classified protocols” being put into action.
Maritime strategist and defence analyst, Eric Grove, said tankers like the Nave Andromeda “don’t have many people on board”, meaning that “small numbers of stowaways can have an extraordinary amount of leverage”.
He added: “We’ve been seeing it with pirate attacks in various parts of the world.”
Defence Secretary Ben Wallace commented: “I commend the hard work of the armed forces and police to protect lives and secure the ship.
“In dark skies, and worsening weather, we should all be grateful for our brave personnel. People are safe tonight thanks to their efforts.”
Bob Sanguinetti, chief executive of the UK Chamber of Shipping said: “We understand the vessel has been boarded by security forces and made safe.
“We commend the swift action taken by UK personnel to secure the vessel and most importantly the safety crew.”
Hampshire Police said concerns for the welfare of the crew of the Nave Andromeda were reported at 10.04am on Sunday.
The vessel went into an erratic zig-zagging pattern at about 10.45am, tracker images showed.
The vessel was approximately six miles off the coast of Bembridge and had been travelling towards Southampton, police said.