As of the 2017 census, it had a population of over 282,407. The city suffered extensive damage and loss of life during the 2007 Peru earthquake.