Two months later, Emperor Gaozu yielded the throne to Li Shimin, who became emperor (as Emperor Taizong). He initially made Yang Gongren to be the governor of the capital prefecture Yong Prefecture (雍州), and then made him the assistant to the commandant at Yang Prefecture (揚州, roughly modern Yangzhou) -- Emperor Taizong's favorite son Li Tai the Prince of Yue. (As Li Tai did not actually report to Yang Prefecture, Yang Gongren was effectively commandant.) In 631, he became the commandant at Luo Prefecture (洛州, roughly modern Luoyang, Henan), an important location as the effective eastern capital. At a later point, he retired, although the year of his retirement was not clear.