Spain's boycott of the Eurovision song contest over Israel's war in Gaza puts it "on the right side of history", Prime Minister Pedro Sánchez said on Friday, ahead of the final in Austria.

"In the face of illegal war and also genocide, silence is not an option. And we cannot remain indifferent to what continues to happen in Gaza and in Lebanon," Sánchez said in a video message posted on X.

"This year, therefore, will indeed be different. We will not be in Vienna, but we will do so with the conviction that we are on the right side of history."

READ ALSO: EXPLAINED - Why is Spain so openly pro-Palestine?

Spain is one of the top financial contributors to Eurovision, the international song contest organised by the European Broadcasting Union (EBU).