Samsung Electronics Co. will produce AI semiconductors for Tesla Inc. in a new $16.5 billion pact that marks a win for its underperforming foundry division.

South Korea’s largest company announced on Monday that it secured the 22.8 trillion won chipmaking agreement, which will run through the end of 2033. The plan is for an upcoming plant in Taylor, Texas, to produce Tesla’s next-generation AI6 chip, Tesla chief Elon Musk said on X, confirming a Bloomberg News report.