A replacement for the ineffective League of Nations , the organization was created following the Second World War to prevent another such conflict .
It replaced the League of Nations and the organization was created following World War II to prevent another conflict .