The area around Ahmedabad has been inhabited since the 11th century, when it was known as
Ashaval. At that time,
Karna, the
Chaulukya (Solanki) ruler of Anhilwara (modern
Patan), waged a successful war against the
Bhil king of Ashaval, and established a city called
Karnavati on the banks of the Sabarmati River. In 1411, this area came under the control of
Muzaffar Shah I's grandson, Sultan
Ahmed Shah, who selected the forested area along the banks of the Sabarmati river for a new capital city. He laid the foundation of a new walled city near Karnavati and named it Ahmedabad after himself. According to other versions, he named the city after four Muslim saints in the area, who all had the name Ahmed. ==Climate==