The word dictator or despot in modern times is used to describe the absolute ruler (other than a king) of a country, who uses force and fear to keep himself, his friends, and his allies in authority, and can effectively make laws all by himself. A country that is ruled by a dictator is called a dictatorship.
The word "dictator" is from the Roman Republic where a man would be given absolute power for half a year or one year to handle an emergency. Julius Caesar was the last Roman Dictator.
Some dictators gained political power through violent takeover, such as a military coup, civil war or revolution. Some won an election and cancelled new ones once in power, or changed how they were run to make them unfair for opponents.
Kings and emperors often use force and fear too, but usually they are not called dictators. This is because those monarchs have some reason for being in power (usually their father was king or emperor), but a dictator gained power himself. Also, when someone is king or emperor of a country, usually there were several kings or emperors before them. A dictator often creates the job of dictator by gaining power.
Some dictators start wars or otherwise kill millions. Mao Zedong, Joseph Stalin and Adolf Hitler were responsible for the most amount of deaths, but Pol Pot was perhaps the deadliest, as his Cambodian genocide killed nearly a quarter of the people under his rule.