SALEM — A major water main break on Bridge Street near the Salem commuter rail depot Thursday night was repaired by Friday morning, but crews were still working in the area to repair the road and restore water service to the area.

The break flooded the area of Bridge Street behind the Ruane Judicial Center and the entrance to the MBTA parking lot and garage.

The courts were closed until noon on Friday due to a lack of water, Clerk of Courts Thomas Driscoll said.

Mayor Kim Driscoll said the break occurred in a 20-inch water transmission line.

"DPW crews and our on-call contractor, Granese, worked through the night to first get to the break ... then make the necessary repairs, backfill and restore water service."

The busy roadway had to be closed down Thursday night, leaving some commuters unable to get their cars from the lot and garage for a time, the city said.

Driscoll said water service had been completed for most of the area residents by 9 a.m.

Access to the MBTA lot was restricted to cars heading east for much of the evening and Friday morning, the city tweeted, causing some traffic issues in the area.

The city was also advising residents not to use their hot water if they saw discoloration, and to wait until the cold water is running clear.

Courts reporter Julie Manganis can be reached at 978-338-2521, by email at jmanganis@salemnews.com or on Twitter at @SNJulieManganis.