 Two months later, Emperor Gaozu yielded the throne to Li Shimin (as Emperor Taizong).Later in 626, when Eastern Tujue's Jiali Khan Ashina Duobi launched a major incursion into Tang territory, reaching all the way to Chang'an, Fang Xuanling, along with Gao Shilian, attended to Emperor Taizong as he personally met Ashina Duobi to promise additional tributes, to induce Ashina Duobi to withdraw.Later in 626, when Emperor Taizong personally ranked the contributions of the generals and officials in order to grant them fiefs, Emperor Taizong ranked five of them — Fang, Zhangsun Wuji, Du Ruhui, Yuchi Gong, and Hou Junji to be contributors of the highest grade, and Fang was created the Duke of Han.