The war that ended with the Treaty of Versailles in 1919 was World War I. The treaty was signed on June 28, 1919, formally ending the hostilities between Germany and the Allied Powers.