Champaner is a historic city in the state of Gujarat, in western India. It is located in Panchmahal district, 47 kilometers from the city of Vadodara. The city was briefly the capital of the Sultanate of Gujarat. It was founded by Vanraj Chavda, the most prominent king of the Chavda Dynasty, in the 8th century. He named it after the name of his friend and general Champa, also known later as Champaraj. By the later 15th century, the Khichi Chauhan Rajputs held Pavagadh fort above the town of Champaner. The young Sultan of Gujarat, Mahmud Begada, deciding to attack Champaner, started towards it with his army on 4 December 1482. After defeating the Champaner army, Mahmud captured the town and besieged Pavagadh, the well-known hill-fortress, above Champaner, where king Jayasimha had taken refuge. He captured the Pavagadh fort on 21 November 1484, after a siege of 20 months. He then spent 23 years rebuilding and embellishing Champaner, which he renamed Muhammadabad, after which he moved the capital there from Ahmedabad.