SOUTH PORTLAND — Residents of Ocean Street near Broadway can expect some noisy nights ahead as the Portland Water District replaces a 350-foot section of water main over the next two weeks.

The project on a busy stretch of Route 77 is expected to take one month to complete, weather permitting. Because the project in front of Mahoney Middle School will include lane closures, motorists are advised to seek alternative routes.

Enterprise Trenchless Technologies Inc. of Lisbon Falls will start the water main work on Monday night, according to a letter sent to residents by William Brogan, a consulting engineer on the project. Some preliminary work was done on two nights last week.

The water main replacement will be done between 7 p.m. and 6 a.m. to avoid heavy daytime traffic, said Michelle Clements, water district spokeswoman. It will take about two weeks to complete.

Once the water main is fixed, Glidden Excavating & Paving of Gorham, an MDOT contractor, will return to finish paving and painting travel lanes during the daytime, said Ted Talbot, spokesman for the Maine Department of Transportation.

Glidden has already paved most of a mile section of Route 77 from Broadway to the Cape Elizabeth line in June and July.

The entire project is expected to be finished by Oct. 15, but it could take longer if the weather doesn’t cooperate.