In the early 18th century, Chinese miners from Malacca had been allowed by Sultan Ibrahim Shah, the ruler of Selangor to mine this area. Sultan Ibrahim signed a trade agreement with the East India Company based in Penang which caused tin from the Lukut mines to be lucrative to the Selangor Crown. This directly caused an uptick in population numbers, particularly from the Hainanese Chinese community which made the Sultan have to appoint a Kapitan to be the representative of the Chinese people.