Which historical figure is often regarded as a villain, but in reality, their actions or intentions were misunderstood or misrepresented?

he was a product of his time and should be viewed within that context.

That literally applies to everyone who ever existed, ever.