What is the main function of the International court of Justice?

The main function of the International Court of Justice (ICJ) is to settle disputes between countries in accordance with international law. It serves as the principal judicial organ of the United Nations and provides a forum for peaceful resolution of conflicts between states. The ICJ also gives advisory opinions on legal questions referred to it by authorized UN organs and agencies.