Receive the latest local updates in your inbox

A water main break in Oceanside created a sinkhole so large that it trapped a city bus.

The large water main broke on Los Arbolitos Boulevard and Fredericks Avenue shortly after 6 a.m., according to the Oceanside Police Department.

Water filled the roadway and created major flooding. That, in addition to the morning rain, created hazardous conditions.

As a result, a sinkhole opened up nearby, trapping a North County Transit District bus on Los Arbolitos Boulevard. Other than the bus driver, no one was inside the bus when its front wheels sunk into the hole.

A tow truck pulled the bus out shortly after it became stuck. No one was injured.

By Wednesday afternoon, water was still bubbling out as crews worked to repair the pipe. The roadway was blocked off due to the large amount of water.

More than 300 residents were without water in the afternoon following the main break. The Oceanside Water Department provided cases of bottled drinking water for residents affected by the main break.

By about 5:45 p.m. water service in the impacted area had been fully restored, according to Jason Defforn with the Oceanside Water Department.

Deffhorn told NBC 7 that crews would return early Thursday morning to repair the road.