When did the Mongols stop being a threat to the Ming Dynasty of China?

蒙古从何时开始,不再是明朝的威胁?