Tan was born in Dongfengzhen, Chao'an, Chaozhou, Guangdong, China. He joined the secret society Tiandihui as a young man. Tan was one of the leaders of the Ngee Heng Kongsi in Singapore who in 1846 ordered the 4,000 members of its brotherhood to relocate in Johor in protest against the imposition of quit rent in Singapore. He settled in Johor having obtained a surat sungai for Sungai Tebrau in 1844. He established a pepper and gambier settlement at Tan Chukang at Kangkar Tebrau, the oldest known Chinese settlement in Johor. However, he did not obtain more than the one grant, unlike other Ngee Heng leaders who held multiple concessions. Chinese sources described him as a yishi, a righteous political dissident who resisted the Manchus. In fact, the site of Tan Chukang, located deep in the jungle, suggests that it was selected as a place of refuge. As such, he would have been in command of military resources which would have been an asset to Sultan Abu Bakar during the crucial period when he was establishing authority over Johor. After the death of Sultan Hussein, a treaty was brokered by the British in 1855 by which his son, Ali, acquired the coveted title of Sultan of Johor while the sovereignty of Johor was ceded to Temenggong Daeng Ibrahim, except for a small territory between the Kesang and Muar rivers. After some years, when Muar disobeyed Sultan Abu Bakar, Tan raised an army and went to pacify Muar, which was incorporated into Johor in 1877. The Sultan came to trust Tan, who was subsequently commissioned by the Johor government to be responsible for police functions in the absence of a properly constituted police force. Since he was also the leader of the Ngee Heng Kongsi, the government specifically permitted its open activities. Tan, did not live to see the Ngee Heng Kongsi officially recognised, for he died about 1864. It is possible that he could have a tacit understanding with the Sultan or even with the Temenggong. Although Tan was succeeded by his adopted son, Tan Cheng Hung, as kangchu and Kapitan China in Tebrau. He was succeeded by Tan Hiok Nee as the leader of the Ngee Heng Kongsi.