Beyonce just scored a huge legal victory -- the judge in that "Lemonade" lawsuit sided with her and tossed the case ... TMZ has learned.
The judge said he considered filmmaker Matthew Fulks' argument that "Lemonade" ripped off his work, and decided to toss the case ... according to docs obtained by TMZ. It's unclear why the judge rejected Fulks' suit ... he says he'll dish details later.
TMZ broke the story ... Bey was sued by Fulks back in June alleging she jacked several parts of his 2014 movie, "Palinoia" -- using similar images from his short film for the "Lemonade" visual album.
Beyonce argued her work depicted a "proud black woman" ... a stark contrast to Fulks' film about a depressed white guy.