In the case of Valencia, there's even archaelogical evidence of pre-Roman irrigation systems [1][2].
[1] https://templersdeburjassot.wordpress.com/2018/05/20/breve-a...
[2] https://www.mapa.gob.es/ministerio/pags/Biblioteca/fondo/pdf...