Researchers have repeatedly found a positive correlation between education and tolerance. However, they may be victims of an unrepresentative sample containing only rich Western liberal democracies, where political agendas have a liberalizing effect on curricula. In this paper, we specify the relationship between education and liberal attitudes by analyzing data on educational attainment and tolerance of homosexuality (one dimension of liberalism) drawn from a heterogeneous sample of 88 countries over the period 1981–2014. We argue that nonliberal political agendas in some countries undermine the supposed universality of the positive relationship between educational attainment and tolerance of homosexuality. In relatively free countries, education is indeed associated with greater tolerance. However, in relatively unfree countries, education has no effect on tolerance and in some cases encourages intolerance. Specifically, our analysis demonstrates that education is associated with tolerance of homosexuality only when regimes energetically promote liberal‐democratic values. The larger theoretical point is that the agendas of political regimes shape civic values partly via education systems. Especially in an era when democracy is at risk in many countries, it is important to recognize that education is not always a benign force.