In optical cooling, a laser beam is directed at the particles to be cooled. When these particles absorb and then emit photons, they experience a recoil effect that can be controlled to reduce their velocity. By carefully tuning the frequency of the laser light, energy is extracted from the particles, leading to a reduction in temperature.