In 1519, Cortez conquered the Aztec Empire. Decades later, Spain conquered the Phillipines by 1571 from Mexico. Spain is now right in China's backyard.
Now by this time Europe (and certainly Spain in particular) had surpassed China in technology and military power. And this gap would continue to grow.
What if Spain then decided to attack and successfully conquers Ming China from the Philippines?