CAEN, France — Algeria’s Constitutional Council on Sunday canceled elections planned for next month, acceding to demands from protesters who since February have upended the country’s politics.

The council, a semi-independent body operating in the shadow of the country’s all-powerful military, gave no reason for canceling the July 4 vote in its official statement. But the decision was not unexpected: For weeks, the protesters who have filled the streets of Algiers and other cities have been demanding nothing less.

The protesters deemed the planned elections illegitimate because they were engineered by the army and by politicians put in place by Algeria’s ousted leader, Abdelaziz Bouteflika.

On Friday, demonstrators took to the streets for a 15th straight week.

The elections were intended to fill the slot left vacant by Mr. Bouteflika’s forced resignation on April 2. But no serious candidates had presented themselves — and above all no candidates accepted by the Algerian street.