Khulusi reports that the first hospital to be established in Baghdad dates back to the 9th century and that mobile hospitals in the Muslim world came into existence in the 11th century. Wards for men and for women with dispensaries were established, and some hospitals had libraries. A botanical garden for medicinal plants was cultivated in the hospital grounds, in Cadiz, Spain.