text: In the Treaty of Nanking ( 1842 ) China was compelled to open five of its ports to foreign economic and political penetration , and even to compensate the opium smugglers for their losses .
  
  ###
  
  The opium smugglers lost a lot because of this .