Harshavardhana became the ruler of Thanesar after both his father arid elder brother died. He took over the kingdom of Kanauj after his brother-in-law was killed by the ruler of Bengal. Harsha led an army against the ruler of Bengal. He got success in the east and conquered both Magadha and Bengal.