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

蒙古從何時開始,不再是明朝的威脅?