Zhao Yin (, died 881), courtesy name Dayin (大隱), formally the Count of Tianshui (天水伯), was an official of the Chinese Tang Dynasty, serving as a chancellor during the reigns of Emperor Yizong and Emperor Yizong's son Emperor Xizong. Background and early career It is not known when Zhao Yin was born. His family was from Fengtian (奉天, in modern Xianyang, Shaanxi), a town that belonged to Jingzhao Municipality (京兆, i.e., the region of the Tang Dynasty capital Chang'an). Several of his male-line ancestors served as county magistrates during Tang. When Emperor Dezong was forced to flee to Fengtian in 783 after soldiers mutinied against him at Chang'an and supported the general Zhu Ci as their ruler instead, Zhu put Fengtian under siege, and Zhao Yin's grandfather Zhao Zhi () led his household servants and guests in assisting Fengtian's defense. As a result, after Zhu's rebellion was suppressed, Zhao Zhi entered the imperial government and eventually served as the military governor (Jiedushi) of Lingnan Circuit (嶺南, headquartered in modern Guangzhou, Guangdong) until his death. Zhao Yin's father Zhao Cunyue () served on the staff of the former chancellor Li Jiang when Li served as the military governor of Shannan West Circuit (山南西道, headquartered in modern Hanzhong, Shaanxi), and when the soldiers mutinied against Li in 830, Zhao Cunyue tried to assist Li in fighting off the mutineers, but was killed by the mutineers with Li. Zhao Yin had at least one younger brother, Zhao Zhi (). Zhao Yin, who was said to be filially pious, was greatly saddened by his father's death, and he spent more than a decade thereafter studying near his father's tomb, not submitting himself for the imperial examinations. During this time, the household was said to be poor, and he and Zhao Zhi, who had a loving brotherly relationship, farmed to support their mother. During the Huichang era (841-847) of Emperor Dezong's great-great-grandson Emperor Wuzong, some friends of Zhao Cunyue's became powerful officials, and they urged Zhao Yin to enter official service; only then did Zhao Yin do so, and he served as an assistant to various officials. In 849, by which time Emperor Wuzong's uncle Emperor Xuānzong was emperor, Zhao passed the imperial examinations in the Jinshi class. (His brother Zhao Zhi would do so eventually as well.) He served at various posts as prefectural prefect, supervisory official, imperial attendant, and eventually the mayor of