Why did the Treaty of Versailles happen?

The Treaty of Versailles happened because the First World War had ended. It was intended to be a lasting peace agreement.