Italy's former premier Silvio Berlusconi has been cleared of soliciting sex from a minor and abusing his political position to cover up the affair.
Italy's top appeal court delivered the ruling on Tuesday - the last word on the so-called "bunga bunga" affair.
The Rome-based Court of Cassation confirmed the verdict issued by a lower appeals court in July, which quashed his 2013 conviction.
Back then, Berlusconi was handed a seven-year suspended jail sentence and given a lifetime ban on public office.
Judges took more than nine hours to deliberate after presiding over a single hearing that lasted about three hours.
The three-time premier finished serving community service for a separate tax fraud conviction on Sunday.
But he is banned from public office until 2019 and is struggling to maintain discipline within his opposition Forza Italia party.
He is being challenged for the leadership of Italy's conservative opposition camp by Matteo Salvini, a far-right populist, and is embroiled in several other legal wranglings, including a trial for allegedly bribing a senator from a rival party.
The "bunga bunga" affair centred around Karima El Mahroug, a nightclub dancer also known as Ruby Heart Stealer, who attended parties at Berlusconi's villa in 2010 when he was premier and she was 17.
In Italy, prostitution is not illegal, but knowingly soliciting sex from a minor is.
Judges had to ascertain if Berlusconi was aware of El Mahroug's age and abused his prime ministerial powers when he rang a police station, successfully lobbying for her release after learning that she was held on suspicion of theft.
That phone call - during which Berlusconi told officers that El Mahroug was a niece of then-Egyptian president Hosny Mubarak, a falsehood he claims to have genuinely believed at the time - triggered investigations into the affair.
Eduardo Scardaccione, who spoke for the prosecution in Tuesday's hearing, said the version of events Berlusconi presented to police was "worthy of a Mel Brooks film, for which the whole world laughed at us".
Lawyer Franco Coppi said the defence acknowledged that Berlusconi regularly hired prostitutes.
But he insisted that there was no proof of him knowing that El Mahroug was under age.
The affair exposed embarrassing details of Berlusconi's private life.
Prosecutors relied on telephone wiretaps and testimony from other showgirls who attended the 78-year-old's parties.
Berlusconi professed his innocence, maintaining that he merely hosted "elegant dinners" at his villa outside Milan.
Some of his young female guests testified to performing lap dances in a special underground "bunga bunga" room, while dressed as "sexy nurses" or wearing masks of famous people, including of US President Barack Obama.