The International Court of Justice is the principal judicial organ of the United Nations. It was established in 1945 and began working in 1946 to settle legal disputes between states and give advisory opinions according to international law. The 15 judges on the court are elected by the UN General Assembly and Security Council to nine-year terms, and it is located at the Peace Palace in The Hague, Netherlands along with its Registry administrative organ.