While plague was confined to the Yunnan region for some decades , the mass displacement and social upheaval caused by the Taiping Rebellion saw millions flee the area , bringing the disease to other parts of the country .