A Top2a-PRC2-H3K27me3 pathway regulates expression of autism risk genes and drives development of sociality. Here, TOP2A is linked to autism.