JD.com's stock was initially halted on the news and later reopened up about 9 percent before paring those gains slightly. It ended the day up more than 4 percent. Wal-Mart shares were slightly higher.
JD.com will now control the brand, website and app for e-commerce platform Yihaodian, while Wal-Mart will retain the subsidiary's direct sales business. Richard Liu, CEO of JD.com, said in a statement that he looks forward to "further developing" the brand, citing its regional strength in eastern and southern China.
The deal also increases the accessibility of Sam's Club China, as the brand will open a flagship store on JD.com.
"Sam's Club's unique, high-end product selection meets the demand from China's increasing affluent consumers for high-quality, imported products and has already proven popular in the Chinese cities where it has stores," Liu said.
Wal-Mart will also receive about 5 percent of total shares outstanding in JD.com.
Doug McMillon, president and CEO of Wal-Mart, said that the two companies share similar values, calling JD.com a "very complementary business and ideal partner."
"We also look forward to offering customers a tremendous number of quality imported products not previously widely available in China through Walmart and Sam's Club," McMillon said in a statement.