The UK has seen the highest net migration since the end of the Second World War.
An estimated 504,000 more people came to the UK than left last year, a figure greater than the population of Liverpool.
It smashes the previous post-war net migration high of 329,000 set in 2015.
Office for National Statistics data shows that in total more than a million people arrived in the country last year.
The report also said an estimated 35,000 people arrived across the English Channel in small boats in the year ending in June 2022.
But earlier this month that figure was put at more than 40,000 according to data released by the Ministry of Defence.
The gross number of people who arrived in the UK was estimated at 1.1 million.
Politics latest: Union boss and transport secretary set for talks as wave of Christmas and New Year rail strikes loom
70,000 people to get texts today and tomorrow to tell them they’ve fallen victim to £48m scam
Avram Glazer confronted in Florida street over possible Manchester United sale
According to the ONS the bulk of the increase was driven by students arriving to study. A total of 487,000 student visa were issued in the year to June 2022, an increase of 71%.
The number of people granted asylum in the UK in the year to June 2022 was 24% lower than in 2019, despite there having been a 77% increase in applications.
A total of 63,089 applications for asylum were made – the highest since 2003 and 75% higher than during the peak of the European Migration Crisis in 2016.
Work visas increased by 72% compared with last comparable pre-pandemic data in 2019, with 331,000 issued in year to June 2022.
The numbers were also bolstered by people fleeing the war in Ukraine with more than 170,000 visas issued to Ukrainian nationals.
Around 28,000 British nationals overseas status holders from Hong Kong came to the country, under a scheme launched in January 2021 to help them escape potential persecution. A separate resettlement programme to help people flee Afghanistan saw 21,000 people arrive.
During the same period a total of 45,000 British nationals left the UK.
Jay Lindop, Director of the Centre for International Migration, Office for National Statistics said: “A series of world events have impacted international migration patterns in the 12 months to June 2022.
“Taken together these were unprecedented. These include the end of lockdown restrictions in the UK, the first full period following transition from the EU, the war in Ukraine, the resettlement of Afghans and the new visa route for Hong Kong British nationals (Overseas), which have all contributed to the record levels of long-term immigration we have seen.”