While China was never actually taken over by Europeans, many European countries, such as Britain and France built spheres of influence in China. Since China had cut itself off from the world over the previous few centuries, by the Qing Dynasty, it had fallen behind other countries in technology, and was helpless to stop this from happening. This had become clear when it lost the Opium Wars to Britain in the 19th century.