The Huns were defeated by the Indian kings Yasodharman of Malwa and Narasimhagupta in the 6th century.