The Arizona-Sonora Desert Museum in Tucson showcases an ancient agave garden. The rock walls were set down by Native Americans a long time ago to capture water when it rains. Their methods obviously still work, as agaves still grow there.
More info about agaves here: https://arcgis.desertmuseum.org/agave.html