“Israel is acting and will continue to act according to international law and we will continue with the war until all of the hostages are freed and until the elimination of Hamas in Gaza.
"There is only one body responsible for the massacre on October 7 and for the situation in Gaza today, and that is the Hamas terror organisation that carried out war crimes and crimes against humanity against Israeli citizens and residents of the Gaza Strip."
Sanchez sparked another angry response from Israel last Friday when he denounced the "indiscriminate killings of innocent civilians" in a speech in Egypt.
He was joined by Belgian Prime Minister Alexander De Croo who also said Israel's "operation needs to respect international humanitarian law".
Cohen promptly summoned the ambassadors of both countries "for a harsh rebuke".
It is not immediately clear when Israeli ambassador Rodica Radian-Gordon would leave Madrid for Jerusalem.