Wu Sangui did not side with the Qing Dynasty until after the defensive capability of the Ming Dynasty had been greatly weakened and its political apparatus virtually destroyed by the rebel armies of Li Zicheng's Shun dynasty.
After capturing the Ming capital Beijing and taking Wu's family there into custody, Li Zicheng sent a message to negotiate Wu's defection.