300
(2007)

The 300 Spartans lose their battle with the Persians, but their sacrifice inspires the armies of Sparta and the rest of Greece to revolt, and the movie ends very similarly to Braveheart.
 
You'll have to read a history book if you don't know what happens from there -

Thanks Herbmeistr!