At the beginning of the 14th century BC, King Pangeng of the Shang Dynasty established his capital north of the modern city on the banks of the Huan River.
La città, nota col nome di Yin, fu la prima capitale stabile della storia cinese.