A wavefront control apparatus includes a detector configured to detect a signal generated from a medium onto which light is irradiated, and a controller configured to control a wavefront of the light based on an output of the detector. The controller performs first processing for forming a first wavefront of the light based on the signal generated from a first measurement position in the medium, and second processing for forming a second wavefront of the light based on the signal generated from a second measurement position different from the first measurement position in the medium onto which the light having the first wavefront is irradiated.