That same year Spain and the United States fought the Spanish-American War, after which Spain gave up the Philippines to the United States for US$20 million. The Filipinos had declared independence by that time and the assertion of American control led to the Philippine-American War that officially ended in 1901, but fighting continued well into 1913. Between 1899 and 1913 the American-Philippines war waged, about one million Filipinos and well over 5500 American soldiers (including missionaries and private contractors, military families) lost their lives, tens of thousands more were wounded. Most of the Philippines' casualties came from starvation, injuries, diseases, lack of clean living. Hostilities continued until 1914 when Philippines was promised future independence.