Yan Emperor (Yán Dì ), as known as Shennong or the Flame Emperor was a legendary ancient Chinese ruler in pre-dynastic times. Modern scholarship has identified his homeland isYángtóu Hill just north of Baoji City in Shaanxi Province.Yan literally means "flame", implying that Yan Emperor's people possibly uphold a symbol of fire as their tribal totems.
At this time it appears that there were only the bare beginnings of written language, and that for record keeping a system of knotting strings (perhaps similar to quipu) was in use. Emperor Yan was recognized as long having been masters of fire and having used fire in their names. Yan Emperor was known as "Emperor of the South".
War at that time
The last Yan Emperor, met the end of his reign in the third of a series of three battles, known as the Battle of Banquan. The exact location of this battle is disputed among modern historians, due to multiple locations adopting the same name at various points through history. Possible candidates include Zhuolu County and Huailai County in Zhangjiakou, Hebei,Yanqing District in Beijing, Fugou County in Zhoukou, Henan, and Yanhu District in Yuncheng, Shanxi.
The Yan Emperor, retreating from a recent invasion from the forces of Chi You, came into territorial conflict with its neighbouring Youxiong tribes, led by the Yellow Emperor. The Yan Emperor was defeated after three successive battles and surrendered to the Yellow Emperor, who assumed the title of overlord (Chinese: 共主) and agreed to merge the two tribes into a new confederation — the Yanhuang tribe. Under the Yellow Emperor's leadership, the newly combined tribes then went to war and defeated Chi You in the Battle of Zhuolu, and established their cultural and political dominance in China proper.