The laser parameters (pulse width, frequency, energy) are tuned so the contaminant absorbs the energy and is removed, while the underlying substrate (like steel or stone) has a much higher reflection threshold and remains unharmed.