The California Department of Motor Vehicles announced it has banned Waymo from operating its self-driving taxis on all state freeways due to what it called an “imminent hazard to public safety.”

The DMV said restrictions took effect on Nov. 11 and will remain in place “until Waymo demonstrates to the Department that it has taken effective corrective actions to address the deficiencies that precipitated the restrictions.”

Before freeway operations can resume, the DMV said Waymo must provide sufficient evidence that its vehicles can safely detect and respond to construction zones, emergency vehicles, and other roadway situations.

California’s restrictions bar Waymo from both operating and testing its driverless vehicles on the state’s freeways.

Waymo will continue to operate its service as normal on surface streets in California.

The company told KTLA it has also temporarily restricted freeway operations across its other operating markets to evaluate their performance in response to the ban in California.

Waymo currently serves riders in 15 markets, including Los Angeles, San Diego, the Bay Area, Las Vegas, Phoenix and more, according to its website.

The ban comes after two recent safety incidents in the Bay Area involving the robotaxis, according to the DMV.