The military history of the Sui and Tang dynasties encompasses the period of Chinese military activity from 581 to 907. Although the Sui dynasty (581–618) preceded the Tang (618–907), it was extremely short lived, ending in 618. The two dynasties share many similar trends and behaviors in terms of military tactics, strategy, and technology. It can therefore be viewed that the Tang continued the Sui tradition, or that the Sui set the precedent for the Tang dynasty.