Before the Qin Dynasty united China, there were hundreds of small states that fought each other for hundreds of years in a war to control China. This is known as the Warring States Period. Although the continuing wars made people suffer, it was at this time when many great philosophies were born, including Confucianism and Daoism. Confucianism and Daoism alone have been the foundation of many social values seen in modern eastern-Asian cultures today.