Ayatollah Seyyed Ali Khamenei, the Leader of Iranís Islamic Revolution, says US leadersí unauthorized trips to regional countries insult the freedom and independence of nations.
"Americans come [to the region] and enter a country like Iraq without any permission, do not visit the countryís government, do not go to the countryís capital; they have bases there, and just go to their own base," Ayatollah Khameneiís official website tweeted.
"This means they officially insult the freedom of nations and the independence of nation," the tweet added.
The comments were posted on Ayatollah Khameneiís Twitter account early Friday, apparently in a fresh reaction to US President Donald Trumpís unannounced visit to Afghanistan on Thursday.
On Wednesday, Ayatollah Khamenei pointed to the former Soviet Unionís invasion of Afghanistan in early 1980s, and recalled that Imam Khomeini, the late founder of the Islamic Republic, had ordered the Iranian government to summon the Soviet ambassador over the illegal entry.
"At that time, the world said ‘you are countering the United States, do not confront the USSR for nowí, but the Imam did not accept such a point of view," Ayatollah Khamenei said.
Trump landed at the US base Bagram airfield in Afghanistan on Thursday and served Thanksgiving dinner to American troops before meeting with Afghan President Ashraf Ghani.
During the visit, the US president claimed the Taliban militant group had accepted a ceasefire to facilitate talks with Washington.
"The Taliban wants to make a deal and weíre meeting with them and weíre saying it has to be a cease fire," the US president, on his first trip to the war-torn country, told reporters.
"We are talking to the Taliban," Trump said.
"We will see if the Taliban wants to make a deal," he said during his meeting with Ghani. "If they do, they do. If they donít they donít. We were getting close."
The Taliban, however, rejected Trumpís gesture of ceasefire on Friday, saying it was "way too early" to speak of resuming direct talks with Washington.
"It is way too early to talk about the resumption of talks for now. We will give our official reaction later," Taliban official spokesman Zabihullah Mujahid said.
There are some 13,000 US troops still deployed to Afghanistan, 18 years after the United States invaded after the September 11, 2001 attacks. Trump claimed he planned to reduce the number to 8,600.
During his surprise visit, Trump said US troops will remain in Afghanistan until a peace deal is made or a total victory is achieved.
Washington wants the Taliban to stop attacking its forces in Afghanistan under a peace deal, but the militants want American forces to leave the country.
The US invaded Afghanistan in October 2001 under the pretext of eliminating the Taliban militant group.