Diplomatic law is a field of international law concerning the practice of diplomacy, and the rights and obligations of state representatives on the territory of other states.

What is the rule of diplomacy?
Diplomacy is a means of state policy to produce results. Diplomats must possess the judgment, capacity, and sense of consequences to make decisions at the appropriate moment, or when their moral authority can advance national interests and values.

There are many types of diplomacy, some of which are mentioned below: Public DiplomacyEconomic DiplomacyCultural Diplomacy.

Why is diplomacy important in international affairs?
The purpose of diplomacy is to strengthen the state, nation, or organization it serves in relation to others by advancing the interests in its charge. To this end, diplomatic activity endeavours to maximize a group's advantages without the risk and expense of using force and preferably without causing resentment.