Germany was split into parts corresponding to each of the axis powers (some of which joined to make it end up being just divided into the Eastern and Western half). There was a denazification program in Germany in which Nazi war criminals were prosecuted. And, the UN was set up to prevent future conflicts.