The fort was built by Qing Dynasty in 1840, it was the same year of Opium War I. The purpose was to defend the attack from British Navy.