In classical Greece he was the god of light and of music, but in popular religion he had a strong function to keep away evil