Syrian President Bashar al-Assad on Wednesday congratulated Iranian counterpart Mahmoud Ahmadinejad, saying his re-election was a 'lesson for foreigners,' state news agency IRNA reported. 'I have come here today to cordially congratulate you and the Iranian people,' Assad said during a one-day visit to Tehran, according to IRNA. 'What happened in Iran was a major event and a great lesson for foreigners, that is why they are so upset,' the Syrian president said. Assad also insisted that relations between regional allies Syria and Iran and their positions on Middle East issues should remain unchanged during Ahmadinejad's second four-year tenure. 'Iran and Syria should pursue their... policies in the region,' IRNA quoted Assad as telling Ahmadinejad. He added, the report said without elaborating, that meetings between Iranian and Syrian officials are 'necessary to send a message to faraway countries and those in the region as they have a weak memory and forget the lessons they learned.' Ahmadinejad for his part said 'Iran and Syria are in the same trench' and insisted that the West 'terribly needs the help and cooperation' of the two regional allies. 'Every political event is an opportunity that we should fully exploit with each others help,' Ahmadinejad said, without giving details. Assad also met supreme leader Ayatollah Ali Khamenei during his visit to Tehran, according to state media. Ahmdinejads disputed re-election, which the opposition charges was the result of fraud, was met with mass protests, plunging the Islamic republic into its worst crisis in 30 years of its existence. During the hardline presidents first term Iran faced further international isolation over his uncompromising nuclear stance and frequent verbal attacks on Israel. Assads trip comes after France praised Syria for helping secure the release on bail of French university teaching assistant Clotilde Reiss and an Iranian employee at the French embassy in Tehran The two were detained for their alleged role in the riots that broke out after Ahmadinejad's disputed re-election. Assad last visited Iran in August 2008. 