He was appointed as the first resident of Singapore. Farquhar set up defence positions at the Singapore River and Government Hill (present-day Fort Canning) due to fear of a Dutch attack. The British decided to make Singapore a free port. Farquhar attracted many people to come to Singapore, sold licenses for gambling and the sale of opium and liquor to earn money and set up a police force.