A scattering medium such as biological tissue distorts the propagation of light pulses in both space and time, making tasks such as focusing and imaging problematic. Fortunately, careful manipulation of the light field's spatial phase prior to entering the medium can help mitigate such distortions and open new prospects for nonlinear microscopy.