In the 18th century, the Portuguese lost commercial influence, and some turned to piracy.