The ship will berth at the newly-named and upgraded Princess Royal Jetty at Her Majesty's Naval Base Portsmouth, which will be home to both of the Royal Navy's new aircraft carriers. The second, HMS Prince of Wales, will be officially named in a ceremony at Rosyth next month.

The berth has been upgraded and strengthened to support the carriers as part of a £100 million raft of infrastructure upgrades which took place ahead of the arrival of the ship.

A total of 3.2 million cubic metres of sediment, equivalent to 1,280 Olympic swimming pools has been removed from the harbour and approach channel, making it wide and deep enough to accommodate the enormous 65,000 tonne ships.

Sir Peter Gershon, Chairman of the Aircraft Carrier Alliance, said: "I am incredibly proud to witness HMS Queen Elizabeth arrive at her home port of Portsmouth Naval Base having successfully completed the first phase of her sea trials programme.

"Over 10,000 people have come together to bring HMS Queen Elizabeth and HMS Prince of Wales to life, from early design to the magnificent ships they are today. It is thanks to their industrious endeavours and pride that we have achieved this historic moment in the programme to bring HMS Queen Elizabeth into service.

"We're excited to complete the remainder of her test and commissioning programme before delivering her to the Royal Navy by the end of the year."

Leading Airman Liam Forgeron, 28, from Portchester, is an aircraft handler on board HMS Queen Elizabeth. He said: "Being a local lad, I am extremely proud that Portsmouth will now be the base port for the nation's future flagship.

"The historic port has a long and proud association with the Royal Navy and the arrival of HMS Queen Elizabeth will cement this relationship for a further 50 years. As a Royal Navy aircraft handler, serving on board this mighty vessel is a real honour, as I too get to make history in my home town."

Both aircraft carriers are being delivered by the Aircraft Carrier Alliance, a partnership between the Ministry of Defence and industry.