Why did India, Indochina and Indonesia become colonies of European powers in the 16th-18th centuries

Why did India, Indochina and Indonesia become colonies of European powers in the 16th-18th centuries, while China and Japan escaped this fate?

In the 16th century in the East, only Turkey, Iran, India, China and Japan were strong centralized powers capable of successfully resisting the European colonialists. By the middle of the 18th century, India was also mired in strife and was gradually conquered by the French and British. China weakened in the 17th century, but was captured by the northern conquerors, the Manchus, before the Europeans intervened.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.