fog does not work when rendering

I’m trying to start the render, everything is fine in the scene there is fog, as soon as I start the render there is no fog, what can be related to?