Pirates engaged in a number of different schemes to make a living. Smuggling and illegal trade overseas were major sources of revenue for pirate bands, both large and small. As the Ming government mostly outlawed private trade overseas, at least until the overseas silver trade contributed to a lifting of the ban, pirates basically could almost by default control the market for any number of foreign goods. The geography of the coastline made chasing pirates quite difficult for the authorities, and private overseas trade began to transform coastal societies by the 15th century, as nearly all aspects of the local society benefitted from or associated with illegal trade. The desire to trade for silver eventually led to open conflict between the Ming and illegal smugglers and pirates. This conflict, along with local merchants in southern China, helped persuade the Ming court to end the haijin ban on private international trade in 1567.