Yes. Nazi Germany, Soviet Russia and Maoist China. They were all incredibly popular... at first.
I recommend The Gulag Archipelago by Aleksandr Solzhenitsyn to get a good idea of what it was like to live through one of those times. I further recommend you pick it up on Audible (not a paid sponsorship) as reading it took quite a while.