Eventually, competition from sugar-producing colonies in the Western Hemisphere began to hurt the islands. The large enslaved population also proved difficult to control, with Portugal unable to invest many resources in the effort. Sugar cultivation thus declined over the next 100 years, and by the mid-17th century, São Tomé had become primarily a transit point for ships engaged in the slave trade between continental Africa and the Americas.