Banjarmasin, he married the sister of the sultan of Banjar, Sunan Nata Nature and was sworn in as prince. He was successful in commerce and accumulated enough capital to arm ships and boats and then started to take the fight against Dutch colonialism. With the help of Sultan Sand, Syarif Abdurrahman then successfully hijacked Dutch ship near Bangka, also British and French ships in the port of Pasir. Abdurrahman became a rich man and then tried to establish a settlement on an island in the Kapuas River. He found branching Landak River and then to develop the area into a prosperous trading center. This is the region that is now called Pontianak. He then established the Sultanate of Pontianak with himself as the first sultan. The influential Arab-Malay writer, Abdullah al-Misri, was closely connected to the rulers of Pontianak at around this time. The sultanate imported Chinese laborers in the 18th century to work in gold or tin mines. A number of mining companies (kongsi) enjoyed some political autonomy. As the Dutch were expanding its power on Borneo, in 1777, the Chinese declared the formation of the Lanfang Republic (Chinese: 蘭芳共和國), led by Luo Fangbo to oppose the Dutch attempt to colonize West Kalimantan, including Pontianak. The settlers subsequently elected Luo as their inaugural president. Luo implemented many democratic principles, including the idea that all matters of state must involve the consultation of the republic's citizenry. He also created a comprehensive set of executive, legislative, and judicial agencies. The Republic did not have a standing military, but had a defense ministry that administered a national militia based on conscription. During peacetime, the populace mostly engaged in farming, production, trading, and mining. Lanfang's administrative divisions included three tiers (province, prefecture, and county) with the people electing leaders for all levels. Lanfang was allied with Sultan Abdurrahman of the Pontianak Sultanate. Lanfang was also declared a tributary state of the Chinese Qing Empire. Colonial rule In 1778, Dutch colonialists from Batavia entered Pontianak, led by Willem Ardinpola. The Netherlands occupied an area opposite the imperial palace now known as the Tanah Seribu or the Verkendepaal area. On 5 July 1779, the Dutch made an agreement with the Sultanate of Pontianak regarding the Verkendepaal so that it would serve as the area of activities of the Dutch nation which later became the seat of government of Resident het Hoofd Westeraffieling van Borneo (Regional