The Academic Freedom in Constitutions (AFC) dataset is a global comparative dataset with de jure provisions on academic freedom at the level of national constitutions. It covers constitutional guarantees of the freedom of science, of academic freedom, of university autonomy, as well as of the freedom of teaching in 203 countries, spanning the period from 1789 to 2022.