In the 19th Century, Puerto Ricans fought against the Spanish Empire. They fought for Mexico's independence and in the Latin American revolutions alongside Simón Bolívar. Puerto Ricans who resided in the United States, such as LT Augusto Rodriguez, fought in the American Civil War. In Puerto Rico they revolted against Spanish rule and fought for Puerto Rico's independence in "El Grito de Lares" and in the "Intentona de Yauco." They also fought for Cuba's independence in the Ten Years' War alongside General Máximo Gómez and as members of the Cuban Liberation Army alongside Jose Marti. At the end of the 19th century, Puerto Ricans fought alongside their Spanish counterparts in the Spanish–American War against the United States in the Battle of San Juan Hill in Cuba and in Puerto Rico when the American military forces invaded the island in what is known as the Puerto Rican Campaign and against the Philippine Republic during the Philippine–American War.