Dutch dominance began to wane when the Dutch East India Company went bankrupt in 1799.
Observing the rise of the Islamic Brotherhood that gained momentum in the late 18th century, the Riau-Lingga Sultanate regarded the Ottoman Empire as a protector against non-Muslim colonial powers.