Emperor Xizong of Tang
It is not known when Zhang Ge was born. His father Zhang Jun was a chancellor during the reigns of Emperor Xizong of Tang and Emperor Xizong's brother and successor Emperor Zhaozong. He was Zhang Jun's second son, and was said to be intelligent and handsome in his youth, and wily as his father was regarded to be.