To help maintain a strong military without having to pay salaries, the Tang military was made up of farmers. There are some factors that contributed to the Tang's military strength, such as the prosperous social economy, the advanced science and technology, acceptance of generals from ethnic minorities from the Emperors and cultural measures aiming the unity of all the nations.