The United States and Iran have reached a deal to end months of fighting, according to President Donald Trump and the leader of Pakistan, which has been mediating the talks.

“The Deal with the Islamic Republic of Iran is now complete. Congratulations to all!” Trump said Sunday on Truth Social, saying the deal would reopen the Strait of Hormuz and end the U.S. naval blockade on Iranian ports.