Urban residence is associated with a higher risk of some psychiatric disorders, but the underlying drivers remain unknown.