How is it that the rain ...in Spain ...falls mainly in the Plain?

When the Mediterranean waters off of Spain are nearest to say Cataluña and that’s not the Plains, And the western portion along the Atlantic is far from the Plain, and the southern part is not a water current that creates much rain as it upwells Where does it most rain in Spain?
Answers

paul

ha ha ha

Eric: Edit

Edit: La Mancha looks quite dry, as does Madrid and Toledo