The move is just the latest example of how Walmart Inc and Target Corp are working to close the gap with Amazon.com Inc, the No. 1 online retailer. Amazon has recruited armies of small businesses to provide delivery services from vans emblazoned with the company's logo - an effort that has helped it control customer wait times and costs.

UPS, FedEx Corp and the USPS have been inundated with packages since the coronavirus pandemic hit U.S. shores last year - forcing retailers to seek new ways to get goods into the hands of customers while containing soaring delivery costs.

Walmart - a key FedEx delivery customer - has been trialing its first company-branded "last-mile" delivery vans, John Furner, Walmart's U.S. chief executive, said on the company's earnings call on Tuesday.

Since January, a small, electric van fleet has made package deliveries in the Bentonville and Rogers areas near Walmart's Arkansas headquarters, company spokeswoman Camille Dunn said. The drivers work for Walmart, which also employs its semi-truck drivers.

When asked about Walmart's project, shipping consultant Cathy Morrow Roberson said: "Hallelujah. They can afford to build out a last-mile delivery network. They built out a trucking network."

Keeping package delivery operations in-house could give Walmart an advantage, said Roberson, founder of Logistics Trends & Insights.

"I wouldn't say that they get customers away from Amazon, but they can certainly put up a good fight," she said.

Retailers are dealing with a trucker shortage that threatens their ability to stock their stores. However, van drivers in theory should be easier to find because they don't require professional licenses like big-rig drivers do.

Target so far is depending on independent drivers from Shipt, which it bought in 2017.

The retailer earlier this year began testing home package delivery from a new sorting center in its hometown of Minneapolis. Workers in that center group packages by zone and hand some over to drivers for Shipt, who use their own cars for deliveries.

The effort, which is fortified by acquired technology from transport management provider Grand Junction and delivery firm Deliv, aims to "add capacity, reduce costs and enable more flexibility," Target Chief Operating Officer John Mulligan said on a conference call on Wednesday.

Walmart, Target and Amazon use gig workers to make same-day, local deliveries. Amazon's service is called Flex. Walmart has its own Spark Driver delivery platform and taps on-demand services from companies such as DoorDash and Postmates. Target depends on Shipt and other providers.

(Reporting by Lisa Baertlein, Editing by Rosalba O'Brien)

By Lisa Baertlein