I had a boss once that I gradually lost respect for. (I hope said boss doesn't read this and recognize himself, but it was many years ago I'm sure he's done fine without me.)
There's no point going into all the reasons. But I got to the point during three years of working for this person that I did not believe the organization he led could ever succeed because his inadequacies as a leader would not permit that to happen. (In fairness to him, once I became the CEO of my own organization, I proved to myself and everyone around me that I had plenty of my own flaws.)
Anyway, it's a gut-wrenching situation to be in because the boss sets the direction, and you can only do so much to get outside that direction because he's the one paying your salary. If you become convicted in the belief that you simply can't work for the man because you can't follow his lead and you're always going to be operating at cross-purposes with him, then the only move you can make with integrity is to leave.