Sure! Walking Tall is an action-packed drama based on a true story (with some creative liberties), and it’s been made a few times, but you’re probably referring to the 2004 version starring Dwayne “The Rock” Johnson. Here’s the rundown of the story:

Plot Summary:
Chris Vaughn (Dwayne Johnson), a former U.S. Army Special Forces soldier, returns to his small hometown in Washington after years away, hoping to settle into a peaceful life. But what he finds is a town that’s fallen into corruption and decay.
The once-thriving local lumber mill — which provided honest jobs — has been shut down, replaced by a seedy casino run by his former high school friend, Jay Hamilton. Drugs, violence, and bribery are now the norm, with the sheriff and other officials turning a blind eye — or worse, actively participating.
After Chris witnesses firsthand how bad things have gotten — especially when his own family is affected — he decides to take a stand. In a dramatic and defiant move, he runs for sheriff, wins, and starts cleaning up the town his way. That means wielding a giant 2×4 wooden plank as a weapon of justice.