Thousand Days' War
The American President Theodore Roosevelt sent his navy to protect the Panama Canal so after the two factions signed a treaty in Panama, they signed a second on an American ship which officially ended the war on the 21st of November, 1902.