Original: Adaptive optics works by measuring the distortions in a wavefront and compensating for them with a spatial phase modulator such as a deformable mirror or a liquid crystal array.
Simplified: Adaptive optics works by measuring the distortion and rapidly compensating for it either using deformable mirrors or material with variable refractive properties.