Likewise, the exchange ratio between silver and copper coinage, which turned so disastrously against the poor peasantry in the nineteenth century, was stabilized by the booming output of the Yunnan copper mines (replacing Japanese imports) and the great inflow of Mexican bullion earned by China’s huge trade surplus.