Emperor Daowu of Northern Wei () (371–409), personal name Tuoba Gui (), né Tuoba Shegui (), was the founding emperor of the Northern Wei. He was the grandson of the last prince of Dai, Tuoba Shiyijian. After the fall of the Dai state to Former Qin in 376, he was presumed to be the eventual successor to the Dai throne. After Former Qin fell into disarray in 383 following its defeat by Jin forces at the Battle of Fei River, Tuoba Gui took the opportunity to reestablish Dai in 386. He soon changed the state's name to Wei and declared himself a prince. He was initially a vassal of Later Yan, but after defeating Later Yan emperor Murong Bao in 397 and seizing most of Later Yan's territory, he claimed the imperial title in 398.