Birth of a Magnetosphere