Turkish Prime Minister Recep Tayip Erdogan, who is on a formal visit to Iran, said on Wednesday that Iran will always be a key country for peace and stability in its region.

"Considering what it is capable of and what it is not, Iran will always have a key position in the region for the establishment and continuance of peace and stability," Erdogan told a press conference in Tehran.

Erdogan started his visit to Tehran on Tuesday and met with top Iranian officials including President Mahmoud Ahmadinejad. Iran's nuclear program was also high on the agenda during Erdogan's talks with Ahmadinejad. Erdogan said that Iran's nuclear program was humanitarian and pacifist.

This was his second visit to Iran after three years, Erdogan recalled, adding, "Turkey has always attached great importance to relations with Iran."

However, Erdogan said Turkey was against nuclear weapons but added that every country has the right to use nuclear power for humanitarian purposes.

"Iran has that right, Turkey has that right too," he said.