On February 4, 1899, fighting broke out between the United States and the Philippine Republican Army, which quickly escalated to the Battle of Manila in 1899. On June 2, 1899, the First Republic of the Philippines formally declared war on the United States. The war officially ended on July 4, 1902.