Uber Technologies Inc. has agreed to sell its U.S. subprime auto-leasing business to startup car marketplace Fair.com, people familiar with the matter said, bringing to an end the ride-hailing giant’s failed attempt to attract new drivers who lack regular access to vehicles.

Uber has been seeking a buyer for Xchange Leasing, as the unit is known, since this summer, when it decided to wind down the business after learning it was losing roughly $9,000 a car, 18 times more than previously believed. In September, the company said it would begin to shutter Xchange Leasing, affecting about 500 jobs, while also launching a sale process.