The sun is "the greater light to rule the day" of Genesis 1. 

Physically its a big ball of mostly hydrogen fusing into helium 149 million kilometers away that provides light in the daytime.

Metaphorically it is a reference to the primary ruler of a nation.  Almost always it is a reference to the king of Israel until Christ is given the designation as the Sun of Righteousness.