Raffles appointed Farquhar as Singapore's First Resident to develop the colony according to a specific plan Raffles had drawn up. Raffles left Singapore on the following day and Farquhar was left to manage the colony when Raffles left, an absence eventually lasting four years. He was appointed the first British Resident and Commandant of Singapore, 1819–23.