The Iranian president made remarks at a joint news conference with his Azerbaijani counterpart Ilham Aliyev who arrived in Tehran Sunday for a one-day visit.
Iran’s chief executive stressed that two Muslim countries view terrorism as a major threat, and share common views on the need to fight terrorists in Iraq, Syria and elsewhere.
"We see terrorism, which is unfortunately rooted in the Wahhabi and Salafi ideology, as a big threat to the region and believe the roots of this ideology need to be dried up," President Rouhani said:
"On the issue of Syria and Iraq, we share common views and hope efforts by Iran, Turkey and Russia will bear fruit," the Iranian president said, adding the ultimate solution for Syria has to be political.
"Iran believes the territorial integrity of countries must be respected and regional problems resolved through political means and dialog."
Aliyev said political relations between Iran and Azerbaijan were "excellent" while economic cooperation between the two countries had made considerable progress.
He also thanked Tehran for its efforts to resolve the Karabakh dispute between Azerbaijan and Armenia.
It is worthy to mention that Imam Khomeini, the late founder of the Islamic Republic through his historic messages and speeches strongly denounced extremist ideology of Wahhabism which is largely responsible for sowing discord among Muslims.