The International Court of Justice (ICJ) settles legal disputes submitted by states and provides advisory opinions to UN bodies. It is composed of 15 judges elected by the UN General Assembly and Security Council. The ICJ has jurisdiction over cases between states if they have accepted its jurisdiction, usually by special agreement, treaty clause, or unilateral declaration. States may make reservations to limit the ICJ's jurisdiction over certain disputes like those solely within domestic jurisdiction. The ICJ lacks jurisdiction if states have not consented to its authority and can raise preliminary objections to the admissibility of a case.