Image copyright Getty Images Image caption Madonna's latest album, Madame X, comes out in June

Madonna will perform during the final of the Eurovision Song Contest in Tel Aviv, it has finally been confirmed.

The singer will perform two songs: her 1989 hit Like A Prayer and new single Future, featuring US rapper Quavo.

An announcement was made ahead of the contest's second semi-final on Thursday, ending days of speculation over whether she would indeed appear.

Earlier this week organisers said a contract had yet to be signed and that she could not perform without one.

Yet the singer was seen arriving in Israel on Tuesday and has reportedly been rehearsing at a secret location.

Earlier on Thursday she posted a cryptic video on social media that appeared to be filmed on the stage of the Expo Tel Aviv.

"We are pleased to finally confirm that the incomparable music icon Madonna will join us at this year's Eurovision Song Contest," said Jon Ola Sand, the event's executive supervisor.

"We know that it will be an evening to remember and can't wait to share it with everyone watching."

Madonna's appearance was announced by her US and UK publicists in April, but it has taken weeks for it to be announced officially.

Organisers said she would be accompanied by a 35-strong choir during Like A Prayer, which was released 30 years ago this spring.

Media playback is unsupported on your device Media caption On the hunt for Madonna at Eurovision

Earlier this week, Madonna appeared to respond to those critical of Israel hosting the contest and her participation in it.

"I'll never stop playing music to suit someone's political agenda, nor will I stop speaking out against violations of human rights wherever in the world they may be," she said in a statement.

"My heart breaks every time I hear about the innocent lives that are lost in this region and the violence that is so often perpetuated to suit the political goals of people who benefit from this ancient conflict.

"I hope and pray that we will soon break free from this terrible cycle of destruction and create a new path towards peace."

The decision to hold Eurovision in Israel is not popular with critics of the country's policies towards Palestinians in the occupied West Bank and Gaza.

The Eurovision Song Contest final will air on BBC One on 18 May from 20:00 BST.

Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.