Khasas (Khaśas) are a tribe mentioned in the ancient Indian and Tibetan literature. They lived at the northern periphery of the Indian subcontinent.
They are thought to be connected to the medieval Khasa Malla kingdom and the modern Khas people of Nepal.
There is a possibility that the word Khas has roots in Central Asia, due to language migration. The word Kazakh was a common term throughout medieval Central Asia, generally with regard to individuals or groups who had taken or achieved independence from a figure of authority.
The Mahabharata mentions the Khasas as one of the northern mleccha tribes. The Bhagavata Purana describes them as a previously outcast group who redeemed themselves by adopting Vaishnavism. The Manusmriti describes them as the descendants of outcast Kshatriyas.
The 12th century text Rajatarangini describes the rulers of Rajapuri (modern Rajauri) as the "lord of the Khasas". The Khasas (identified with Khasa Mallas) are also mentioned in several Indian inscriptions dated between 8th and 13th centuries CE.
The Khasas are mentioned in the Tibetan chronicle Dpag-bsam-ljon-bzah (The Excellent Kalpa-Vrksa), along with people like the Yavanas, Kambojas, Tukharas, Hunas, Daradas etc.
Aurel Stein identified the Khasas mentioned in the Rajatarangini with the modern Khakhas.
The modern Khas people of Nepal have also been connected with the ancient Khasas, although their period of migration in Nepal remains ambiguous. In Nepal the Khas people first settled around present day Humla and Jumla. The Khasa kings of Nepal formed the famous Malla Kingdom, which ruled Humla from the eleventh century before collapsing and splintering into local chiefdoms during the fourteenth century.