Legend states that a Gurjar Kshatriya named Vijayasena founded the city around the third century. The Maitrakas ruled the peninsula and parts of southern Rajasthan from Vallabhi from the fifth to the eighth centuries. They are descendants of General Bhatarka, a military governor of the Saurashtra peninsula at the time of Gupta ruler Skandagupta. The first two Maitraka rulers, Bhatarka and Dharasena I, only used the title of Senapati. The third ruler, Dronasimha, declared himself Maharaja. King Guhasena came after him. Unlike his predecessors, the king stopped using the term Paramabhattaraka Padanudhyata alongside his name, a term that denotes nominal allegiance to the Gupta overlords. He was succeeded by his son Dharasena II, who used the title Mahadhiraja. The next ruler was his son, Siladitya-I Dharmaditya, who was described by a Chinese scholar and traveller Xuanzang as a "monarch of great administrative ability and of rare kindness and compassion". Siladitya I was succeeded by his younger brother Kharagraha I. During the time of Kharagraha I, a virdi copperplate grant was found from 616 CE that shows that his territories included Ujjain. During the reign of the next ruler, his son Dharasena III, north Gujarat was assimilated into the kingdom. Dharasena II was succeeded by another son of Kharagraha I, Dhruvasena II, Baladitya. He married the daughter of Harshavardhana and their son Dharasena IV assumed the imperial titles of Paramabhattaraka Mahrajadhiraja Parameshvara Chakravartin and Sanskrit poetBhatti was his court poet. The next powerful ruler of this dynasty was Siladitya III. After him, Siladitya V ruled, and it is suspected that during his reign, there was an Arab Invasion. The last known ruler of the dynasty was Siladitya VII. The Maitrakas were under the rule of Harsha in the mid-seventh century but retained local autonomy. They regained independence after Harsha's death. The rule of the Maitrakas is believed to have ended during the second or third quarter of the eighth century when the Arabs invaded. Vallabhi was a noted center of the Jains. It was here that the Vallabhi councils of the Jains produced the religious canon in writing under the leadership of the all Jain Acharya Shraman Devardhigani along with other 500 Jain Acharyas. The idols of representing each of them is present in the basement of the Jain temple. However, when the Chinese traveller Xuanzang visited Vallabhi during the second quarter of 7th century, he found its ruler to be a Buddhist follower. When Yijing, another Chinese traveller, visited Vallabhi in the last quarter of 7th century, he found the city as a great centre of learning Jainism along with Buddhism. Gunamati and Sthiramati are stated to be two famous Buddhist scholars of Vallabhi at the middle of seventh century.
Valabhi inscriptions
Religious inscriptions are known from Valhabi, which were dedicated to the Brahmans as well as the Buddhist and Jains. The Indologist Sylvain Lévi wrote an article entitled "Les donations religieuses des rois de Valhabi". The numerals used in the Valhabi inscriptions and on their coins, dated to circa 600CE, are often mentioned as an intermediary step in the evolution of Hindu-Arabic numerals.