A section of San Diego’s coastline has been closed due to a large sewage spill, officials said Sunday.

The closure includes the popular Dog Beach in Ocean Beach and parts of South Mission Beach. According to the water department, it was caused when two sections of a pipe were offset by roots. It is conducting tests this afternoon to determine if the beaches were contaminated.

San Diego lifeguards posted signs Sunday warning swimmers, surfers and others about the contamination caused by a nearly 22,000 gallon sewage spill.

The spill started near Interstate 15 and the San Diego River, officials said. A citizen spotted the spill and reported it.

Soon after, the County Health Department ordered parts of Ocean Beach and South Mission Beach closed.

The boundaries include north and south of Mission Bay channels, the northern end of Ocean Beach and the area near South Mission Beach Jetty.

Tests results were expected Tuesday before the beaches will be reopened.