CAPE TOWN — It sounds like a Hollywood blockbuster. “Day Zero” is coming to Cape Town this April. Everyone, be warned.

The government cautions that the Day Zero threat will surpass anything a major city has faced since World War II or the Sept. 11 attacks. Talks are underway with South Africa’s police because “normal policing will be entirely inadequate.” Residents, their nerves increasingly frayed, speak in whispers of impending chaos.

The reason for the alarm is simple: The city’s water supply is dangerously close to running dry.

If water levels keep falling, Cape Town will declare Day Zero in less than three months. Taps in homes and businesses will be turned off until the rains come. The city’s four million residents will have to line up for water rations at 200 collection points. The city is bracing for the impact on public health and social order.

“When Day Zero comes, they’ll have to call in the army,” said Phaldie Ranqueste, who was filling his white S.U.V. with big containers of water at a natural spring where people waited in a long, anxious line.