In 1644, the Chinese general Wu Sangui, loyal to the Ming dynasty, was trapped at the Great Wall, with a gathering of invading Manchu forces on one side and a band of peasant rebels against the Ming dynasty on the other. The general held a lottery, which led him to open the gates of the wall to the Manchu forces, who invaded China and killed 25 million people.
