It has a masculine gender in Spanish and Portuguese (el Sol, o Sol) but that doesn't make the name itself masculine and it is often paired with Maria in Spanish speaking areas as Maria del Sol.
― Anonymous User 11/23/2019
9
In Spanish it is used as a feminine name because of the Marian title Nuestra Señora del Sol (Our Lady of the Sun).