Facing the situation, the leader of padri group, Tuanku Imam Bonjol, began to embrace the indigenous cultures and made an agreement between the two parties to unite against Dutch colonialism. The two parties had made a consensus on the amalgamation between the Islamic teachings and the local customs, under the principle of Adat basandi syarak, syarak basandi Kitabullah ("Adat based on the teachings of Islam, the teachings of Islam based on the Qur'an").[11]