Lyft competes with Uber for ride-hailing customers. Now it is following its rival into bike-sharing, as the companies move to diversify the kinds of transportation services they offer.

Lyft said on Monday that it was buying the core operations of Motivate, the parent company of CitiBike and several similar programs in United States cities. The business, to be renamed Lyft Bikes, will maintain control of Motivate’s contracts with New York, Chicago and six other cities.

The parts of Motivate that maintain bikes will remain a stand-alone company and continue to service Lyft Bikes.

Financial terms were not disclosed, but media reports had previously suggested that Lyft would pay around $250 million for the business.