The Philippine–American War was an armed military conflict between the United States and the First Philippine Republic. It was fought between 1899 and least 1902. The conflict started from a Filipino political struggle against U.S. occupation of the Philippines. Although the conflict was officially declared over on July 4, 1902, American troops continued hostilities against remnants of the Philippine Army and other resistance groups until 1913. Some historians consider these unofficial extensions part of the war.