This paper investigates the impact of geographical proximity to universities on educational attainment in Nigeria. We relate individuals level of schooling obtained from three rounds of the Nigeria's Living Standard Measurement Survey (LSMS) to spatial distance to university measured by pairing residential and university campuses GPS coordinates. To identify the effect of the distance to university, we exploit the theory of residential sorting to instrument residential proximity to university. Specifically, we instrument distance to university drawing on variations in households' proximity to state boundary posts and neighbourhood population density. The instrumental variable estimates show a negative and significant effect of distance revealing that geographical constraints during teenage years represent a barrier to the subsequent human capital acquisition. Additional results from a difference-indifference estimation strategy indicate that a large scale establishment of universities had beneficial trickle-down effects by decreasing the intention to drop out of secondary school, supporting evidence of the role of geographical constraints in the accumulation of human capital in Nigeria.