安史之亂
However, after the An Lushan Rebellion, the political and economic structure of the country began to disintegrate. The rebel generals fighting against the Tang court during and after the An Lushan Rebellion were allowed to surrender and given military governor posts even after the leaders of the rebellion were vanquished. Peace and stability over the entire area of Hebei was heavily bought by a compromise settlement. These provincial governors paid only lip service to the central government. The court, now weak and impotent, tolerated their growing independence, wary also of the aggression of the Tibetans to the north-west who posed a constant threat to the capital.