The Ch'ang-an's success in resisting the T'ang dynasty was largely due to the high quality of its leadership.
The Ch'ang-an's leadership was of a high quality because they were successful in resisting the T'ang dynasty.