A nuclear-powered submarine has collided with a ship off the coast of Gibraltar, with the accident coming despite the Royal Navy saying it has "world leading sensors".

The Astute-class submarine, which is the largest nuclear-powered attack craft in the Royal Navy, was submerged below the water as part of a normal training exercise when it had a "glancing collision" with a merchant ship passing by.

HMS Ambush took a hit to its outer body but the Ministry of Defence has said there was no damage to its nuclear plant and none to the other vessel.

What is Trident?

Yet a full review of the incident will be carried out, particularly given that the Astute-class submarine is meant to have "world leading sensors" based on a special sonar system.

No one was hurt in the collision.

In a statement, the Royal Navy said: "The submarine suffered some external damage but there is absolutely no damage to her nuclear plant and no member of the ship's company was injured in the incident.

"An immediate investigation is being conducted."

In pictures: Royal Navy photography competition Show all 10 1 /10 In pictures: Royal Navy photography competition In pictures: Royal Navy photography competition Royal-navy-6.jpg The Junior Command Course (JCC) conduct their Final Exercise Land operation on the 18th March 2013 on a very cold Senny Bridge Training Area Royal Navy In pictures: Royal Navy photography competition Royal-navy-9.jpg Objective Ruby Images captured show a dawn raid by Lima Company 42 Commando Royal Marines on to objective Ruby. The mission saw the commando’s clear enemy from buildings and the surrounding terrain. The attack was part of 42 Commando's week long final exercise of Black Alligator Royal Navy In pictures: Royal Navy photography competition Royal-navy-4.jpg HIFR (Helicopter In-flight Refuelling) with a Merlin Helicopter Royal Navy In pictures: Royal Navy photography competition Royal-navy-7.jpg The Junior Command Course (JCC) conduct their Final Exercise Land operation on the 18th March 2013 on a very cold Senny Bridge Training Area Royal Navy In pictures: Royal Navy photography competition Royal-navy-8.jpg Combat Intelligence Training Royal Navy In pictures: Royal Navy photography competition 051Mimage.jpg A Lynx helicopter test firing Royal Navy In pictures: Royal Navy photography competition Royal-navy-3.jpg Maritime Doughnuts for HMS Edinburgh creates a perfect turning circle in the ocean as she tests the capability of her engines, going maximum speed and giving a hard left turn. An opportunity arose where near perfect weather conditions allowed a Photex of the Ship utilising the Ship's Mk 8 Lynx helicopter. Royal Navy In pictures: Royal Navy photography competition Royal-navy-5.jpg Combat Intelligence Training Royal Navy In pictures: Royal Navy photography competition navy-photographic-competiti.jpg Royal Navy SeaKing Mk4 helicopter from 845 Naval Air Squadron landing at a forward operating base during an exercise in northern Norway Royal Navy In pictures: Royal Navy photography competition Royal-navy-10.jpg Illuminating Enemy Positions Images captured show Mortar Troop from 42 Commando Royal Marines illuminating enemy positions in the mountains of the Mojave Desert during the week long final exercise of Black Alligator Royal Navy

The incident, which took place at 1.30pm local time on July 20, occurred off the coast of Gibraltar, a British Overseas Territory on the south-western tip of Spain.

BAE Systems, which build the Astute-class craft, announced in 2002 that the submarines would all be fitted with "the world's most advanced sonar system".

At the time, defence procurement minister Lord Bach said the new technology represented "a step change in the ability of our submarines to detect other submarines and surface ships."