How were the Anasazi able to farm in the desert?

They used irrigation systems to farm in the desert area