The United Nations Security Council was created as a part of the UN charter which created the Security Council among six other main organs. The UNSC has the primary responsibility of maintaining international peace and security. The UNSC meets whenever peace is threatened. All the members of the United Nations agreed to accepting and carrying out the decisions passed by the Security Council, because it is the only organ of the United Nations with the power to make decisions that member states are obligated to implement.
The first approach that the UNSC takes is recommend the parties involved reach an agreement through peaceful means. If the dispute leads to hostilities, the UNSC's primary concern is bringing the parties involved to stop, it may do so through, issuing ceasefires or dispatching military observers or peacekeeping forces. If the aforementioned approaches do not work, the UNSC may decide to use enforcement measures that may include economic sanctions, severances of diplomatic relations, or even military action. The UNSC debates clauses and not resolutions; together the clauses that are passed create a resolution.
The only power of veto is reserved for the P5 countries: United States, China, Russia, United Kingdom, and France.