 Altan Khan eventually made peace with China when it opened border cities for trade in 1571, alleviating the Mongol need to raid.This, coupled with Qi and Tan's efforts to secure the frontier, brought a period of relative peace along the border.However, minor raids still happened from time to time when the profits of raiding outweighed the profits of trade, and so wall-building continued.