北魏太武帝率兵攻略劉宋,駐軍於瓜步,後人因於瓜步立祠,稱魏帝廟,又名佛狸祠。北魏太武帝統一北方,具有雄才偉略,南宋以前,人們多慨歎他征伐的霸業未成。南宋時,由於金人、蒙古的侵略,人們轉將佛狸視為胡族君主的象徵。位於南宋境內的佛狸祠,因為抗金輿論的長期蓄積,最終遭到撤毀。人鬼神祠被撤毀的原因很多,佛狸祠遭毀可說是民族衝突所致。
Emperor Taiwu had stationed troops at Guabu when he attacked Liu Song dynasty. Thereafter, people settled a shrine called Weidi Temple or Foli Ci and sacrificed to him to commemorate the event. Before the Southern Song dynasty, several literati sighed for his unfinished work. Yet during this period, the term Foli gradually transformed into a symbol of a barbarian king who had threatened Chinese integrity. Facing upon the invasion of Jurchen people and Mongoliansat this time, the public opinions of anti-Jurchen and anti-Mongolians strengthened. Foli Ci located in the domain of the Southern Song was thus finally destroyed by a local official. The decline of a ghost shrine may have various reasons, but the case of Foli Ci shows that nation conflicts play an important role.