The Treaty of San Francisco, also called the Treaty of Peace with Japan, re-established peaceful relations between Japan and the Allied Powers on behalf of the United Nations by ending the legal state of war, military occupation and providing for redress for hostile actions up to and including World War II. From Wikipedia