FedEx Corp. confirmed on Wednesday it would terminate its contract with Amazon.com Inc. for ground delivery of small packages as the online retailer focuses on building out its own delivery network.

The move by the U.S. delivery company comes two months after it decided not to renew its contract with Amazon for U.S. cargo delivery through its plane-based express service.

"This change is consistent with our strategy to focus on the broader e-commerce market," FedEx said in a statement as it looks to expand and serve companies that include Amazon rivals.