Raja Sham Raj played a prominent role in the Second Anglo-Mysore War and Third Anglo-Mysore War against Hyder Ali and Tipu Sultan of Mysore on the side of Marathas and British. In 1791–92, Sham Raj also led the forces of Nizam Ali Khan to the Siege of Seringapatam. Quoting on the influence of Raja Sham Raj in the Second Anglo-Mysore War, Third Anglo-Mysore War and the Treaty of Seringapatam , author M. V. Shiva Prasad Rao says, "Raja Shamraj played a prominent part on behalf of the Nizam of Hyderabad in the war against Tipu Sultan of Mysore , in 1781. In his correspondence there is a reference to the two sons of Tipu Sultan who were taken as hostages soon after the Third Mysore War (1790-1792) to compel the ruler of Mysore to fulfil the obligations arising out of the Treaty of Seringapatnam (1792)".