Riot police swept thousands of striking teachers out of the heart of Mexico City, driving protesters through the streets with tear gas and water cannons.

It was a swift end to the weeks-long occupation of the Zocalo plaza over reforms to the dysfunctional national education system.

The dramatic reassertion of state authority came after weeks of near-constant disruption in the centre of one of the world’s largest cities. The teachers have marched through the capital at least 15 times over the last two months, against President Enrique Pena Nieto’s plan to break union control of education with a new system of standardised teacher testing.

Federal police chief Manuel Mondragon said more than 20 demonstrators were arrested.

The teachers’ demonstrations have slowed passage of Mr Pena Nieto’s education shake-up and the pace of his wider agenda of structural reforms, which seeks to re-engineer some of Mexico’s worst-run institutions, including the weak tax-collection system and under-performing state oil company.

Mr Pena Nieto will almost certainly gain significant political capital if Friday’s eviction, led by national instead of city police, definitively ends the demonstrations that have gridlocked traffic for weeks in Mexico City.

There was additional pressure to clear the Zocalo, where the teachers had been camping out, before the President’s first traditional Independence Day celebration in the massive colonial-era square today and tomorrow.

The confrontation erupted after the teachers armed themselves with metal pipes and wooden and blocked off the Zocalo with steel grates and plastic traffic dividers, threatening to scuttle the Independence Day gathering.

The government responded that celebrations, including the president’s shout of independence from a balcony of the National Palace overlooking the Zocalo, would take place in the square as scheduled tonight.

The head of the federal police warned on national television that officers would move in on protesters.

The teachers, many veterans of similar battles with police in poor southern states, said they would not move from the square where they have camped out since last month. Some fixed knives and nails to wooden planks and declared themselves ready to fight and others set up sewage-filled portable toilets in the path of police vehicles.

The police swarmed in, shooting tear gas canisters and spraying water from armoured trucks. Protesters hurled sticks and chunks of pavement broken from the streets around world-famous tourist attractions including the Metropolitan Cathedral, the Templo Mayor and the National Palace.

The police swarmed in, shooting tear gas and spraying water from armoured trucks

But within half an hour, police had cleared the Zocalo and much of the surrounding historic center of virtually all demonstrators. Union organisers said they would reassemble away from the main plaza at the nearby Monument to the Revolution.

Small knots of teachers, self-described local anarchists and other supporters hurled bottles and rocks at police on some of the main avenues of central Mexico City.

“We’re going to reorganise and go back,” said a masked teacher who would only give his first name, Juan Carlos, as he waited in an alley with about 10 other demonstrators. “It’s not going to stay like this. The government isn’t going to repress us.”

Mr Pena Nieto’s new standardised system of test-based hiring and promotion would give the government the tools to break teachers unions’ near-total control of school staffing.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.