We report infection of humans with highly pathogenic avian influenza A(H7N9) virus in Shaanxi, China, in May 2017. We obtained complete genomes for samples from 5 patients and from live poultry markets or farms in 4 cities. Results indicate that H7N9 is spreading westward from southern and eastern China.