During the Middle Ages, Muslim farmers in North Africa and the Near East developed and disseminated agricultural technologies including irrigation systems based on hydraulic and hydrostatic principles, the use of machines and the use of water raising machines, dams, and reservoirs. They also wrote location-specific farming manuals, and were instrumental in the wider adoption of crops including sugar cane, rice, citrus fruit, apricots, cotton, artichokes, aubergines, and saffron.