In the Han dynasty an official in charge of brocade, the
锦官, had his walled quarter in Chengdu, and the name spread to the whole city. Du Fu used it in two famous lines,
花重锦官城 and
锦官城外柏森森, "outside the Brocade City the cypresses stand dense". It is shortened to
锦城.