This paper presents an historical database on educational attainment in 74 countries for the period 1870-2010. We use data on total enrolment in Primary, Secondary and at University to estimate average years of schooling using perpetual inventory methods. Several difficulties arise due to missing data. We use some simulations to assess the quality of schooling estimates and show that most of them become reliable around 1900. Then, we extend our series over the period 1960-2010 using Cohen and Soto (2007) database, which relies mainly on surveys. The correlation between the two sets of average years of schooling in 1960 is equal to 0.96. We use a measurement error framework to merge the two databases while correcting a systematic measurement...