Migrants arriving by small boat will be barred from seeking asylum or using human rights law to stop them leaving.
Prime Minister Rishi Sunak said his new illegal immigration bill would take back control of borders, once and for all.
It sets up a vicious battle with the "Globe" of left-wing lawyers, immigration unions and civil servants. The Prime Minister's historic limits bill will apply retrospectively to all small vessel arrivals although the new law could take months to pass. If the Illegal Migration Bill is passed, only under-18s and the genuinely ill will be allowed to apply for asylum in the UK.
All other arrivals will be deported home or to a safe third country such as Rwanda. While they wait, holiday parks, student dormitories, military accommodation and even cruise ships will be used to house migrants instead of expensive four- and five-star hotels. The legislation, published after months of delay, will openly acknowledge the risk of breaching the Human Rights Act, sparking a major battle with Labor and open borders campaigners and lawyers.
A little-known "Section 19B Declaration" will be attached to the law, in which ministers admit they risk breaching commitments made under the European Convention on Human Rights and written into Britain's statue book. This so-called "Strasbourg Brake" section will allow certain parts of the Human Rights Act not to apply when it comes to controlling the UK's borders.
Later this week, Sunak will appeal to Emmanuel Macron that the bill will help ease pressures on France as well as Britain, with a similar clampdown possible for European countries struggling with migration. The prime minister will tell the French president that fixing the Channel crisis will mean fewer migrants moving through France on their way to Calais.
Also in the bill, the Home Secretary will be given a legal duty to deport anyone who arrives in the country without permission. And it will radically limit the ability of newcomers to seek asylum, to claim they have been trafficked.
A government source added: The British people have had enough. This government is determined to stop the boats and ensure we have all the powers available to remove illegal immigrants. The Prime Minister and the Secretary of the Interior are committed to this course of action. This new duty to remove will ensure that the Home Secretary's power to deport migrants has priority in law and ensure that asylum claims, human rights and modern slavery are blocked.
Nearly 3,000 migrants have crossed the English Channel already this year. Forty were caught by the Border Force on Sunday. The new laws will include tightly drafted rules to close loopholes to stop migrants from staying permanently in the UK.
Science Secretary Michelle Donelan said the government was "getting a grip" on illegal migration, but also promised to create more "safe routes" for asylum seekers to enter the UK.