Brain imaging of fetuses and infants reveals a rapid increase in functional brain connectivity at birth, aiding adaptation to the external world.