Answer:
Western powers gained greater trading rights in China by force and by making agreements with each other in the face of the weakness of the Qing government. In treaties signed after Britain's victory in the Opium War, China was forced to open five ports to trade.