The spiritual mission helped doom the enclave's material prosperity, when the Jesuits' spreading influence finally prompted Japan to shutter itself from the world by the early 1640s. (The Dutch cut off trade from the other direction by seizing Malacca in 1641.) But over the next century the effort gave Macau a purpose, as a center of learning and a bridge to the Middle Kingdom.