Both were abandoned in 771 BC during the Quanrong invasion that drove the Zhou out of the Wei River valley and brought an end to its Western dynasty.