Local rulers who sought to limit the impact of a foreign presence on their control of society frequently were willing to accept such extra-territoriality. One form this took was through establishment of so-called treaty ports. Examples were Macao, Nagasaki and Goa.