Why was the European Union Formed?

After two world wars and a history of conflict it was formed to bring the Nations of Europe closer together. It was formed for social and political reasons.