Turkey’s president sought deeper economic ties and common ground on Middle East conflicts during a visit to Iran on Tuesday, even as the longtime rivals compete to influence the outcome of wars in Yemen, Syria and Iraq.

Recep Tayyip Erdogan’s meeting with Iranian President Hasan Rouhani, on the heels of Tehran’s framework nuclear agreement with six world powers, marks Turkey’s push to reap a trade windfall if a final deal is reached that would lift sanctions on Iran.

...