Walmart is retreating from Europe, merging its UK supermarket business Asda with bigger rival Sainsbury's.
In return, Walmart will receive £2.97 billion ($4.1 billion) in cash and a 42% stake in the combined business, the companies said in a statement on Monday.
The deal values Asda at £7.3 billion ($10 billion), and creates a mega retailer with 2,800 stores and combined sales of roughly £51 billion ($70 billion).
The sale of Asda follows Walmart's exit from Germany, its other major outpost in Europe, in 2006.
Walmart could use the cash to fuel its expansion in other international markets. The US retailer is reportedly close to agreeing to invest in India's Flipkart , an online retailer that has also attracted attention from Amazon.
"This proposed merger represents a unique and bold opportunity, consistent with our strategy of looking for new ways to drive international growth," Judith McKenna, the CEO of Walmart International, said in a statement.
The combination with Asda will give Sainsbury's more firepower as it confronts digital competitors including Amazon and aggressive discount chains, such as Germany's Lidl and Aldi.
It also creates a new UK market leader: Sainsbury's and Asda together control over 31% of the grocery market, according to Kantar Worldpanel. The current industry front runner, Tesco, has nearly 28%.
Regulators will have a close look at the deal, but the geographical distribution of Sainsbury and Asda stores could limit concerns over reduced competition.
Upmarket Sainsbury's is strong in southern England, while Asda, which tends to have larger stores and lower prices, is well represented in the north. Together, the supermarket chains employ 330,000 people.
The UK Competition and Markets Authority last year approved Tesco's takeover of wholesaler Booker, saying the deal would not reduce competition in the sector, which is known for its razor-thin margins and frequent price wars.