The Dominican Republic regained independence in 1844 after the Dominican War of Independence. The rest of the Greater Antilles would remain under colonial rule for another hundred years. Along with the Philippines in Asia, Spain transferred possession of Cuba and Puerto Rico to the United States as a result of its loss in the Spanish-American War in 1898, coinciding with the Cuban War of Independence. This was the final loss of Spain's territorial possessions in the Americas. U.S. military rule over the island lasted until 1902, when Cuba was granted formal independence.