Pitbull's song included a line "I got it locked up like Lindsay Lohan", prompting the actress to take legal action against him, claiming he had no right to use her name.
But a New York federal judge ruled in favour of Pitbull Thursday, saying the song is a work of art protected by the US first amendment, reports tmz.com.
Photos: Kareena Kapoor Khan and Aamir Khan at Mumbai airport
Photos: SRK, wife Gauri, Aishwarya Rai, Shweta Bachchan at Vogue Awards
Photos: Harbhajan Singh-Geeta Basra's TV outing with daughter Hinaya
Photos: Malaika Arora flaunts ripped jeans like a boss!
Photos: Vaani Kapoor, Kriti Sanon, Dia Mirza sizzle on the ramp