I don't have the exact details, but it could potentially be based on multiple real-life stories combined and adapted for the movie. Maybe some local legends or tales of bravery that were turned into this story.
I'm not sure exactly, but I think it might draw inspiration from some real-life incidents of local heroes standing up against injustice.