In the fall of 1896, Filipino nationalists ... declared allegiance to the United States. By the end of the Philippine War in 1902, more 40,000 Filipinos and 4,000 American soldiers were dead.