The leaders of G7 nations have called for a "de-escalation of hostilities in the Middle East, including a ceasefire in Gaza."
In a joint statement, they also reiterated their "commitment to peace and stability" in the region, adding that within this context "Israel has a right to defend itself".
US President Donald Trump left the summit in Canada early.
His exit came as Israel and Iran attacked each other for a fifth consecutive day.
Reports circulated that Trump had instructed the White House National Security Council to meet upon his return.