(TMZ) - 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.