In May 2017, he was appointed Minister of National Education and Youth in Édouard Philippe's government. He continued in this role in Jean Castex's government, with an expanded portfolio including Sports, until May 2022. He is now a professor of public law at Paris II Panthéon-Assas University.