The British took this as a personal offense. How did Western powers gain greater trading rights with China? Western powers began to make unequal treaties with China. The first treaty was after the first Opium war, TREATY of NANJING (China had to open 5 ports, one of which included Canton).