After Israel's airstrikes, Iran’s foreign ministry issued an official statement and said that Israel had violated Iran's sovereignty and national integrity. Tehran also said that under Article 51 of the UN Charter, they have the right to respond to the unprovoked and illegal assault in a manner it deems "appropriate". Scroll below to know more about Article 51 of the United Nations Charter.
...