Serbia has entered a new political era after an extraordinary election swept Aleksandar Vučić’s government from power. Last week, crowds gathered outside the National Assembly in Belgrade to celebrate as MPs from the victorious Student List movement took their seats. Doctors, lawyers and academics put forward by the young protesters who challenged Mr Vučić now face the task of governing a country full of expectations.

Their central challenge is to rebuild trust and democratic legitimacy after Mr Vučić’s rule drove Serbia towards the bottom of Europe’s corruption rankings. Legal action has begun against figures accused of illicitly profiting from the previous regime. In his first address, the new parliament’s elected speaker, a professor and organic farmer, called for dignity and tolerance in parliamentary proceedings. Protecting academic and media independence, and reforming the security services that acted as the former president’s authoritarian enforcers on the streets, are urgent priorities.

The moment also presents an uncertain path. The new government will hold a substantial majority, but its members are largely novices. The coalition that defeated Mr Vučić includes figures from the right and the liberal left. Its campaign programme sets out mainly general principles, and it is not yet clear how the students’ stated intention to oversee parliamentary decision-making will work in practice.

The course of Serbia’s stalled EU accession talks, which began in 2012, is easier to discern. At an EU enlargement forum last week, Student List MP Aleksandar Baucal received a standing ovation after pledging to fast-track rule-of-law reforms that Mr Vučić had paid only cynical lip-service to. For now, however, the new government appears unlikely to sign up to key EU foreign policy commitments, including recognition of Kosovo’s independence and support for sanctions on Russia.

Brussels should show patience on geopolitics while offering investment and support as Serbia’s new leaders concentrate on domestic reform. A recent poll found that 42% of Student List supporters considered a closer relationship with the EU the best way to protect Serbia’s interests; 9% chose Russia and China. After effectively tolerating Mr Vučić’s authoritarian excesses in a failed attempt to draw him away from Vladimir Putin’s influence, European leaders should seize the chance to build closer ties with a movement that shares the EU’s democratic values. A stronger partnership with a country that sends two-thirds of its exports into the EU could open the way to alignment in other areas.

In 2000, a similar wave of student-led protests eventually toppled Slobodan Milošević and brought to power a more orthodox coalition government committed to reform. Mr Vučić, then a rising star under Milošević, spent the last 14 years reversing that progress. His ousting, and the student movement’s tenacity and courage, have become symbols of Gen Z ambitions across Europe for a new political settlement. The EU must do all it can to help make Serbia’s democratic revolution irreversible.