In the early 19th century, piracy along the East and Gulf Coasts of North America as well as in the Caribbean increased again. Jean Lafitte was just one of hundreds of pirates operating in American and Caribbean waters between the years of 1820 and 1835. The United States Navy repeatedly engaged pirates in the Caribbean, Gulf of Mexico and in the Mediterranean. Cofresí's "El Mosquito" was disabled in a collaboration between Spain and the United States. After fleeing for hours, he was ambushed and captured inland. The United States landed shore parties on several islands in the Caribbean in pursuit of pirates; Cuba was a major haven. By the 1830s piracy had died out again, and the navies of the region focused on the slave trade.