Following Abdul Jalil's contentious accession, Minangkabau settlements in Rembau, Sungei Ujong and Naning that existed since mid 15th century, began to challenge Johor's authority.
In 1718, Raja Kecil appeared on the Riau River with Minangkabau troops and succeeded in overcoming the Johor fleet.