In 1718, Raja Kecil appeared on the Riau River with Minangkabau troops and succeeded in overcoming the Johor fleet. He was then able to capture Johor's capital, then located on Riau Island, and proclaim himself a ruler, adopting the style Sultan Abdul Jalil Rahmat Shah (r. 1718-1722).[9]