Nearly two years after Hollywood actress Lindsay Lohan sought out legal action against rapper Pitbull over being name-checked in one of his hit songs, the lengthy battle has finally ended.

According to reports, Pitbull won easily after a judge claimed Lohan’s accusations over his “Give Me Everything” anthem held no weight in court.

Pitbull didn’t just win his legal war with Lindsay Lohan … he ANNIHILATED HER … TMZ has learned. We broke the story … Lohan sued the rapper in 2011 for using her name in his hit song “Give Me Everything” … when he dropped the line, “I got it locked up like Lindsay Lohan.” Lohan claimed Pitbull never got permission to use her name … and therefore he had no right to profit off of it. But today a New York federal judge sided with Pitbull … ruling that Lindsay is dead wrong on the law — because the song is a work of art protected by the 1st amendment PLUS Lindsay’s barely even mentioned in it. The judge also ruled … Lindsay’s allegations that she suffered emotional distress are also BS. The case has been dismissed. (TMZ)

Back in late 2011, Pitbull filed a counter lawsuit against Lohan.

He’s filed a countersuit, claiming that her multiple prison sentences support the lyric, and also that Lohan was ineligible to file the original suit in New York, since she is demonstrably a resident of California. (Because, well, she spends a lot of time in its jails.) Memo to clubs of the greater Los Angeles area: This is definitely not the week to resurrect “Give Me Everything.” (New York Mag)

In August 2011, Lohan ignored Pitbull’s initial apology for mentioning her on wax.

Lindsay Lohan was unmoved by Pitbull’s explanation of the hilarious diss of her in his song “Give Me Everything.” Or by his invite to the VMAs Sunday night. Sources close to Lohan say she has no interest in going to the VMAs – which Pit invited her to as a show of good faith – and his apology had no impact. The lawsuit is moving forward, and ridiculous. (The Hollywood Gossip)

Pit also said he did not fully understand Lohan’s lawsuit against him.

“I was very surprised to me when I found out about the lawsuit,” the soft-spoken rapper, who’s real name is Armando Christian PĂ©rez, told Univision News. “It was very ironic.” Pitbull, 30, said he’s supported Lohan’s career and wasn’t meaning to disparage her name in the context of the song, as “everything about this record is so positive.” Pitbull clarified that when he said she’s “got it locked up,” it means she runs every aspect of her life. He pointed out how, despite her issues, she’s stayed popular throughout, noting the song helped keep her “relevant” with its’ non-stop airplay internationally. (RadarOnline)

Check out the “Give Me Everything” music video: