Dejima was used to quarantine foreign traders (Portuguese, then Dutch) during the Edo period of the Tokugawa Shogunate.