Kenya banned protests to demand electoral reforms after two people were killed in opposition-led marches on Monday, Interior Secretary Joseph Nkaissery said, a day after the High Court ruled that the demonstrations were legal.

The authorities will crack down on protests until negotiations resolve differences over electoral reforms. The opposition Coalition for Reforms and Democracy party has staged protests in the capital, Nairobi, and other cities since April to demand the resignation of officials at the electoral agency over alleged corruption. Eighteen civilians and 32 police officers were injured in protests across the country on Monday, Nkaissery said.

“The government has banned demonstrations beginning today whether it’s CORD or anybody else,” Nkaissery told reporters in Nairobi on Tuesday, flanked by Attorney General Githu Muigai and Inspector General of Police Joseph Boinnet. “It is extremely dangerous for anybody to challenge the government’s decision. The consequences are grave.”

With presidential elections scheduled for August 2017, the clashes have evoked memories of the political and ethnic conflict that erupted after a disputed vote in 2007 and claimed at least 1,100 lives. Former Prime Minister Raila Odinga, who heads CORD, poses the biggest political challenge to President Uhuru Kenyatta, 54.

CORD withdrew its members from a parliamentary committee on electoral reforms on Tuesday, saying it preferred instead talks at the “highest level.”