Zhang Hu was born in 792, in Qinghe (modern Qinghe County, Hebei or Shandong) or possibly Nanyang (modern Nanyang, Henan).
Later, he retired to Danyang (modern Danyang, Jiangsu, where spent the rest of his days as a private citizen.