President Donald Trump on Tuesday said he agreed to suspend planned attacks on Iranian infrastructure for two weeks.

The move was “subject to the Islamic Republic of Iran agreeing to the COMPLETE, IMMEDIATE, and SAFE OPENING of the Strait of Hormuz,” he wrote on Truth Social.

The announcement came less than two hours before his deadline on Iran to either make a deal that includes opening the Strait of Hormuz or else face major attacks on its civilian infrastructure.

Trump wrote that he made the decision “based on conversations with Prime Minister Shehbaz Sharif and Field Marshal Asim Munir, of Pakistan.”

“This will be a double sided CEASEFIRE!” Trump declared.