We study the effect of secondary education on cognitive performance toward the end of working age. We exploit the exogenous variation in years of schooling arising from compulsory schooling reforms implemented in six European countries during the 1950s and 1960s. Using data of individuals, approximately age 60, from the Survey of Health, Ageing and Retirement in Europe (SHARE), we assess the causal effect of education on memory, fluency, numeracy, and orientation-to-date. Furthermore, we study education effects on cognitive decline. We find a positive impact of schooling on memory scores. One year of education increases the memory score approximately four decades later by about 0.2, which amounts to 10 % of a standard deviation. Furthermore, we find some evidence for a protective effect of schooling on cognitive decline in terms of verbal fluency.