The invention discloses a lamp with an anti-shock function, comprising: a power supply, electric wires, a support frame, a lampshade, a luminous body, and an anti-shock structure. The power supply is fixed on the support frame, and a through hole is opened on the support frame, and the power supply is electrically connected with the luminous body through the wire passing through the through hole. The illuminant is accommodated in the lampshade, the lampshade has a cone structure, and the central axis of the lampshade coincides with the central axis of the through hole. The anti-vibration structure includes three anti-vibration parts, which are distributed in a circular array around the central axis of the lampshade, and the three anti-vibration parts have the same structure. The anti-vibration parts include: lampshade connecting plate, fastening bolts, elastic parts, the light fixture with anti-vibration function of the present invention, through the power supply, wires and luminous body provided, the luminous body emits light source, the support frame is used to store the power supply, and by setting The lampshade plays a protective role for the luminous body, and finally, through the set anti-shock structure, it can effectively absorb the vibration of the lamp, achieve the shockproof effect, and make the suspended lamp more stable.