Even as Jesuits in northern and central China were successfully switching their loyalties from the fallen Ming Dynasty to the newly established Qing, the Jesuits in the south of the country continued to work with the Ming loyalist regimes still controlling some of the region. Accordingly, in 1649 Boym was sent by the Canton-based Vice-Provincial of the China Mission Alvaro Semedo with a diplomatic mission to the court of the Yongli Emperor, the last Chinese ruler of the Ming Dynasty, still controlling parts of the Southwestern China.