The Queen has formally decommissioned one of Britain's biggest warships in a ceremony at Devonport.
HMS Ocean, or the Mighty O, as she is known throughout the fleet, has been sold to the Brazilian navy for £84m ($118.8m).
During a speech in Plymouth, the Queen paid tribute to the "unique and remarkable vessel" and her crew.
The farewell to the beloved ship took place "in the midst of this city's rich maritime heritage", she said.
"With three generations of naval officers in my family, I recognise the significant demands that have been placed on all those who have served in the ship over the last two decades, as well as the contribution of their families and loved ones."
The Queen also said that the Duke of Edinburgh joined her in wishing the sailors well in the future and that they would "always treasure" their memories of HMS Ocean.
While onboard the ship the Queen had lunch, meeting families and ship personnel and observed a flypast of three Merlin helicopters, a Chinook, a Sea King and a Wildcat.
The decommissioning ceremony ended with the Royal Navy White Ensign being symbolically hauled down from the ship's main mast.
Members of the parade removed their hats and gave three cheers for the Queen.
- HMS Ocean was commissioned in September 1998 at her home port HMNB Devonport, Plymouth.
- In her 20 years of service, the vessel has been involved in operations in Sierra Leone, Iraq, Libya, and provided security for the 2012 London Olympics.
- HMS Ocean weighs 22,000 tonnes.
- She boasted a crew of up to 1,000, with facilities including shops, gyms, pubs and its own police force.
- In 2017, Britain's biggest warship arrived in the British Virgin Islands to provide support for those affected by hurricanes Irma and Maria.