Walmart (NYSE:WMT) announced today it was selling its warehouse club-style Best Price Modern Wholesale business to the Flipkart Group, the Indian e-commerce giant in which Walmart has a majority ownership interest. The move will allow Walmart to position itself in India to better take on Amazon.com (NASDAQ:AMZN).

The sale will allow Flipkart to launch a new digital marketplace called Flipkart Wholesale, set to open next month, which will use its vast supply-chain network to offer kiranas and small- and medium-sized businesses (SMBs) access to an "exhaustive" range of merchandise and easy credit options. Kiranas are small family-owned stores that sell groceries and other goods.

Going where the growth is

India is the second-largest e-commerce market after China, and one of the world's fastest-growing economies. The local mom-and-pop business is attracting attention from tech giants like Alphabet's Google and Facebook, both of which have invested billions of dollars in telecom and internet provider Jio Platforms.

Earlier this year, Amazon announced it would be investing $1 billion to help SMBs develop e-commerce platforms of their own.

Walmart bought a 77% stake in Flipkart in 2018 for $16 billion, but the Indian government quickly slammed the brakes on how much control it and Amazon could actually wield in the country. So Walmart has been building up the homegrown Flipkart and last week led a round of financing for the e-commerce leader that saw it raise $1.2 billion, increasing Flipkart's valuation to $249 billion.

Walmart's Best Price chain of 28 membership-based stores has more than 1.5 million member kiranas, SMBs, and independent retailers. There were no financial details released with the announcement of the sale.

This article originally appeared in the Motley Fool.

Rich Duprey has no position in any of the stocks mentioned. The Motley Fool owns shares of and recommends Alphabet (A shares), Alphabet (C shares), Amazon, and Facebook and recommends the following options: short January 2022 $1940 calls on Amazon and long January 2022 $1920 calls on Amazon. The Motley Fool has a disclosure policy.

Walmart
A Walmart store is pictured on Jan. 11, 2018 in Chicago, Illinois. Scott Olson/Getty Images