Qatar said on Tuesday that Hamas's political leadership would stay in Doha as long as their presence remained beneficial to mediation efforts aimed at ending the war in Gaza.

"As long as their presence here in Doha, as we have always said, is useful and positive in this mediation effort, they will remain here," foreign ministry spokesperson Majed al-Ansari told a press conference, adding that Qatar continued to reassess its role as mediator.