Tesla delivered 254,695 electric vehicles globally in the second quarter, a nearly 18% drop from the previous period as supply chain constraints, China’s extended COVID-19 lockdown and challenges around opening factories in Berlin and Austin took their toll on the company.

This is the first time in two years that Tesla deliveries, which were 310,048 in the first period this year, have fallen quarter over quarter. Tesla deliveries were up 26.5% from the second quarter last year.

The quarter-over-quarter reduction is in line with a broader supply chain problem in the industry. It also illustrates the importance of Tesla’s Shanghai factory to its business. Tesla shuttered its Shanghai factory multiple times in March due to rising COVID-19 cases that prompted a government shutdown.

Image Credits: Tesla/screenshot

The company said Saturday it produced 258,580 EVs, a 15% reduction from the previous quarter when it made 305,407 vehicles.

Like in other quarters over the past two years, most of the produced and delivered vehicles were Model 3 and Model Ys. Only 16,411 of the produced vehicles were the older Model S and Model X vehicles.

Tesla said in its released that June 2022 was the highest vehicle production month in Tesla’s history. Despite that milestone, the EV maker as well as other companies in the industry, have struggled to keep apace with demand as supply chain problems persist.