Meaning
To have a private ulterior motive, often a grievance, for doing or saying something.
Literal Meaning
To have a cutting tool that needs sharpening.
Example
“I think he has an ax to grind with the committee, which is why he's so critical of every proposal.”