Grahavarman. This king, some years later, had been defeated and killed by king Devagupta of Malwa and after his death Rajyashri had been cast into prison by the victor. Harsha's brother, Rajya Vardhana, then the king at Thanesar, could not accept this affront on his family. So he marched against Devagupta and defeated him. However, Shashanka, king of Gauda in Eastern Bengal, then entered Magadha as a friend of Rajyavardhana, but in secret alliance with the Malwa king. Accordingly, Shashanka treacherously murdered Rajyavardhana. In the meantime, Rajyasri escaped into forests. On hearing about the murder of his brother, Harsha resolved at once to march against the treacherous king of Gauda, but this campaign remained inconclusive and beyond a point he turned back. Harsha ascended the throne at the age of 16. His first responsibility was to rescue his sister and to avenge the killings of his brother and brother-in-law. He rescued his sister when she was about to immolate herself. Reign As North India reverted to small republics and small monarchical states ruled by Gupta rulers after the fall of the prior Gupta Empire, Harsha united the small republics from Punjab to central India, and their representatives crowned him king at an assembly in April 606 giving him the title of Maharaja. Harsha established an empire that brought all of northern India under his control. The peace and prosperity that prevailed made his court a centre of cosmopolitanism, attracting scholars, artists and religious visitors from far and wide. The Chinese traveller Xuanzang visited the court of Harsha, and wrote a very favourable account of him, praising his justice and generosity. Pulakeshin II repelled an invasion led by Harsha on the banks of Narmada in the winter of 618–619. Pulakeshin then entered into a treaty with Harsha, with the Narmada River designated as the border between the Chalukya Empire and that of Harshavardhana. Xuanzang describes the event thus: "Shiladityaraja (i.e., Harsha), filled with confidence, marched at the head of his troops to contend with this prince (i.e., Pulakeshin); but he was unable to prevail upon or subjugate him". In 648, Tang dynasty emperor Tang Taizong sent Wang Xuance to India in response to emperor Harsha having sent an ambassador to China. However once in India he discovered Harsha had died and the new king Aluonashun (supposedly Arunāsva) attacked Wang and his 30 mounted subordinates. This led to Wang Xuance escaping to