The surgery lamp comprises a lamp body (4) with a light exit surface (15) and with an illuminant (9) for radiating a light beam (11) on a surgery field (13). A sensor unit (16) is provided for detecting a distance between the light body and the surgery field. A control unit is provided for evaluating the distance between the light exit surface of the lamp body and the surgery field detected by the sensor unit.