The unequal treaties imposed on China by foreign powers after the Opium Wars (1839-1842 and 1856-1860) weakened China's sovereignty and gave foreign powers significant influence in China's internal affairs. These treaties included provisions that granted foreign powers extraterritoriality, allowing their citizens to be tried in their own courts, and gave them control over China's customs revenue.
Internal instability
During the late 19th and early 20th centuries, China was plagued by internal instability and civil unrest. The Qing dynasty, which ruled China from 1644 to 1912, was weakened by corruption and ineffective leadership. There were also frequent revolts and uprisings, including the Taiping Rebellion (1850-1864) and the Boxer Rebellion (1899-1901).
Technological inferiority
China lagged behind other countries in terms of technological development. This was especially true in the area of military technology. China's military was ill-equipped and poorly trained compared to the militaries of foreign powers.
Lack of unity
China was not a unified country at the time. There were many different factions and groups vying for power, and this made it difficult to resist foreign aggression.
Economic weakness
China's economy was weak and undeveloped. This made it difficult for China to resist foreign economic pressure and to compete with foreign goods and services.
These factors combined to make China vulnerable to foreign exploitation and control in the late 19th and early 20th centuries.