Turkish Prime Minister Recep Tayyip Erdogan said Wednesday that Turkey would continue relations with Israel on an equitable basis.

Turkey and Israel criticized each other after Israeli offensive in Gaza and a TV show aired by Turkey's state-run TRT that showed what appeared to be Israeli soldiers killing Palestinian children, and also when Turkey cancelled a military exercise in which Israel would take part.

Tension was also high following a World Economic Forum meeting in Davos where Erdogan walked off the stage after a heated debate with President Shimon Peres of Israel over the conflict in Gaza.

Erdogan told a press conference in Tehran that his reaction in Davos was not planned beforehand, he said it was just spontaneous.

"It would be wrong to assume that my reaction in Davos was a stance against the West," Erdogan said.

"One side of Turkey's face is turned to the West while the other is to the East," he said.

Turkey is in efforts to improve relations both with the West and the East, Erdogan stated, and he showed Turkey's EU bid and NATO membership as examples.