Volkswagen is investing up to $5 billion with electric-vehicle startup Rivian Automotive, which has struggled to produce its all-electric vehicles amid rising costs and declining demand.

VW announced a joint venture with Rivian on Tuesday, June 25, saying its investment with the Irvine-based automaker would go toward creating next-generation software and architecture for EVs.

Each company will hold a 50% stake in the venture, controlling it equally.

Also see: Tesla recalls Cybertrucks twice in a day to fix windshield wipers, loose trim

Rivian said the venture would enable both companies to produce vehicles at a lower cost by increasing scale and innovation. New vehicles created from the venture are expected in the latter half of the decade, Rivian said.

“We’re very excited to be partnering with Volkswagen Group. Since the earliest days of Rivian, we have been focused on developing highly differentiated technology, and it’s exciting that one of the world’s largest and most respected automotive companies has recognized this,” RJ Scaringe, founder and CEO of Rivian, said in a statement.

More on autos: Ford recalls over 550,000 pickups because transmission can suddenly downshift to 1st

Scaringe said the money VW is investing will help the Irvine automaker secure capital needs for “substantial growth.”

Rivian shares rose 5% on Tuesday, but are down 43% for the year.

The automaker has struggled in the past year, laying off scores of people across several divisions. Last month, it laid off 1% of its workforce, the second round of layoffs this year.

“We continue to work to right-size the business and ensure alignment to our priorities,” the company said in early May. “This was a difficult decision, but a necessary one to support our goal to be gross margin positive by the end of the year.”

The company’s May layoffs came two months after Rivian slashed 10% of its salaried staff. Previous rounds went after product teams as Rivian cut staff working on its commercial EV business.

Rivian, like many other automakers in the EV sector, has seen a stall in vehicle demand after a surge of buying in the past five years. Tesla in April said it would cut 10% of workers after dismal sales so far this year. A year ago, the company laid off 239 workers at Costa Mesa and Tustin operation centers.

A year ago in April, Rivian cut 239 workers in Orange County as it culled the company’s workforce by 6%. It also cut 240 jobs in the Bay Area that month.

Rivian also halted its plans to build a production facility in Georgia. Instead, the automaker is expanding its Normal, Ill., facility with help from state tax incentives. The company said it’s getting incentives valued at $827 million.

Bloomberg contributed to this report.

Related Articles

Business |

Tesla recalls Cybertrucks twice in a day to fix windshield wipers, loose trim

Business |

When will America get its $25,000 electric car?

Business |

EV maker Fisker in Manhattan Beach files for bankruptcy protection

Business |

Elon Musk wins back his $44.9 billion Tesla pay package in shareholder vote

Business |

California EV sales hit record level while other states seem to lose interest