In response to the COVID-19 epidemic, many education systems have relied on distance learning and educational technologies to an unprecedented degree. However, rigorous empirical research on the impacts on learning under these conditions is still scarce. We present the first large-scale, quantitative evidence detailing how school closures affected education in China. The data set includes households and teachers of 4,360 rural and urban primary school students. We find that although the majority of students engaged in distance education, many households encountered difficulties including barriers to learning (such as access to appropriate digital devices and study spaces), curricular delays, and costs to parents equivalent to about two months of income. We also find significant disparities across rural and urban households.