Why does my render not show my light source? I have a sun that lights up my scene perfectly fine in my object view, but when I render it is completely dark.


There is nothing between my sun and the camera. I've moved it all around the scene but no luck.
Here is my blender file.
You have a sphere that is hidden in viewport but that will be rendered, as we see in the Outliner. Note that even if you move your sun inside it won't light your scene, the location of the sun is not taken into account, so you need to either hide your sphere in render or find another solution: