The Han Dynasty restored unity in China after the fall of the Qin Dynasty. Liu Bang defeated his rival Xiang Yu to found the Han Dynasty in 202 BC. He established a centralized government with lower taxes that gained popular support. The Han Dynasty saw economic growth through advances in agriculture and commerce. Confucianism became the dominant ideology and civil service exams tested applicants on Confucian classics. However, inequality grew and rebellions eventually caused the Han Dynasty to fall in AD 220.