Image copyright Getty Images

Japanese carmaker Toyota is to invest $500m (£387m) in Uber and expand a partnership to jointly develop self-driving cars.

The firm said this would involve the "mass-production" of autonomous vehicles that would be deployed on Uber's ride sharing network.

It is being viewed as a way for both firms to catch up with rivals in the competitive driverless car market.

The deal also values Uber at some $72bn, despite its mounting losses.

That is up 15% since its last investment in May but matches a previous valuation in February.

According to a press release issued by the firms, self-driving technology from each company will be integrated into purpose-built Toyota vehicles.

The fleet will be based on Toyota's Sienna Minivan model with pilot trials beginning in 2021.

Shigeki Tomoyama, executive vice president of Toyota Motor Corporation, said: "This agreement and investment marks an important milestone in our transformation to a mobility company as we help provide a path for safe and secure expansion of mobility services like ride-sharing."

Image copyright Uber Image caption Uber technology will be incorporated in Toyota vehicles

Both Toyota and Uber are seen as lagging behind in developing self-driving cars, as firms such as Waymo, owned by Alphabet, steam ahead.

Uber has also scaled back its self-driving trials after a fatal crash in Tempe, Arizona, in March, when a self-driving Uber SUV killed a pedestrian.

Since then, the ride-hailing giant has removed its autonomous cars from the road and closed its Arizona operations.

Analysis: Dave Lee, BBC North America technology reporter, San Francisco

Uber's troubled self-driving car efforts are in need of external help, and this deal with Toyota might provide that expertise. It's of course a terrific opportunity for Toyota, too.

It was reported earlier this month that Uber was sinking around $1m-$2m into its autonomy work every single day. The results of that effort have not been something to be proud of - one fatal crash, one very expensive lawsuit, and not a lot of self-driving compared to the leader in this sector, Waymo.

Sharing the burden, and R&D cost, will delight Uber's investors as it aims for its initial public offering next year.

Meanwhile, shares in Toyota spiked at reports of the deal. Not surprising. Many analysts think personal car ownership will drop dramatically when the self-driving, ride-sharing future is fully upon us - with major companies instead purchasing enormous fleets of vehicles. Toyota, then, may have just secured its biggest ever customer.

The deal extends an existing relationship with Toyota, and furthers Uber's strategy of developing autonomous driving technology through partnerships.

The US firm has also teamed up with Daimler, which hopes to own and operate its own self-driving cars on Uber's network.

On Monday, Uber said it planned to focus more on its electric scooter and bike business in future, and less on cars - despite the fact it could hurt profits.

Revenue from its taxi business is rising but the cost of expansion into new areas such as bike sharing and food delivery has meant losses have grown rapidly.