Historical accounts and anecdotes about dogs from ancient China and onwards exist in extant literary works, for example in the Shiji, by Sima Qian.
Dogs also feature in various historical and legendary accounts or stories, found in the extensive literary records of China, although in some cases the lines between myth and ancient history are uncertain.
Wolfram Eberhard points out that compared to other cultures it is "striking " that Chinese literature rarely has given names for dogs.
The personalities of people born in Dog years are popularly supposed to share certain attributes associated with Dogs, such as loyalty or exuberance; however, this would be modified according to other considerations of Chinese astrology, such as the influences of the month, day and hour of birth, according to the traditional system of Earthly Branches, in which the zodiacal animals are also associated with the months and times of the day (and night), in twelve two-hour increments.
Panhu helped him win a war by killing the enemy general and bringing him his head and ended up with marriage to the emperor's daughter as a reward.
According to one version, the Emperor had promised his daughter in marriage as a reward to the one who brought back the enemy general's head, but due to the perceived difficulties of a dog marriage with a human bride (especially an imperial princess), the dog proposed to magically turn into a human being, by means of a process in which he would be sequestered beneath a bell for 280 days.
In the novel, Journey to the West , Erlang's dog helps him fight Sun Wukong, preventing him from escaping by biting him in the leg.
Later in Chapter 63, Sun Wukong, Erlang, and their companions battle against the Nine-Headed Prince when the dog defeats the enemy biting off one of monster's retractable heads.
This myth is common to the Buyi, Gelao, Hani, Miao, Shui, Tibetan, Tujia, and Zhuang peoples.
(Yang 2005: 54) The Zhuang and Gelao peoples have a similar myth explaining why it is that the ripe heads of grain stalks are curly, bushy, and bent – just so as is the tail of a dog.
(Yang 2005: 54) In northern China, dog images made by cutting paper were thrown in the water as part of the ritual of the Double Fifth (Duanwu Festival) holiday, celebrated on the fifth day of the fifth lunar month, as an apotropaic magic act meant to drive away evil spirits.