The climate in spain is diverse, being affected by altitude (Spain is the second most mountainous county in Europe), the sea (Mediterranean or Atlantic Ocean) and continental effects (central spain is in effect in a large land mass).
There is also of course a significant difference between north and south Spain.