The allies created the untied nations after World War II to?

Options;
1- prosecute and punish war criminals
2- subdue and take over aggressive nations
3- establish free international elections and rules in war
4- maintain international peace and security

Please help me