Iranian President Hassan Rohani said he spoke with Turkish President Recep Tayyip Erdogan and praised him for restoring stability in Turkey.
"We are happy that we have witnessed the restoring of stability in the friendly country of Turkey," Rohani was quoted as saying by the official IRNA news agency. "Peace and stability in Turkey will lead to improving peace and security in the entire region."
Rohani said Tehran has closely watched developments in neighboring Turkey since Erdogan put down an attempted coup against his presidency on July 16.
The Iranian leader described the coup attempt as a "test for detecting both domestic and foreign friends and enemies."
He added that Iran has "stood by and will stand by the government of the people of Turkey."
IRNA quoted Erdogan as saying that "the situation is getting back to normal, but it is too early to say that everything is over."
Based on reporting by AP and TASS