What is a ruler called that has total power over a nation?

A dictator. An example of a dictator would be Adolf hitler.