"The legend of Xue Dingshan and Fan Lihua takes place between the Tang and the fictional Turkic kingdom of Western Liang, ironically there was a real Western Liang during the Sixteen Kingdoms period that was thought to be the ancestors of the Tang.Xue Rengui also sometimes appears as a door god in Chinese and Taoist temples along with the Korean general Yeon Gaesomun.