Xianbei state
Towards the end of Emperor Wen's reign, the Xianbei state of Northern Wei began to strengthen, and decisively defeated an attempt by Emperor Wen to destroy it. Following this victory, Wei launched repeated incursions into the northern provinces, finally capturing them in 468.