Why does the Moon exert a greater tidal influence than the Sun?

The moon is closer?