The treaty that ended the war was called the Treaty of .