According to as story, during an epidemic that broke out in Sha Tin in the late Ming dynasty (1368–1644), possibly the epidemic of 1629, local residents found out from historical writings that Che Kung was not only merited for his successful suppression of uprisings, but was also known for clearing epidemics wherever he set foot in. People therefore built a temple to house Che Kung in Sha Tin, and the epidemic subsided on the day the construction of the temple was completed. According to oral traditions, the Che Kung Temple at Sha Tin was founded from Ho Chung, when the god was "invited" from the existing Che Kung Temple in Ho Chung to Sha Tin.