query: Who was the first ruler of the Tang dynasty?
passage: Emperor Gaozu of Tang
Emperor Gaozu of Tang (7 April 566 – 25 June 635), born Li Yuan, courtesy name Shude, was the founder of the Tang Dynasty of China, and the first emperor of this dynasty from 618 to 626. Under the Sui dynasty, Li Yuan was the governor in the area of modern-day Shanxi, and was based in Taiyuan.
passage: List of emperors of the Tang dynasty
This is a list of emperors from the Tang dynasty (618–907) of China.