How was a foreign-born German princess able to overthrow a foreign-born German duke? There's always more to be said, but you may be interested in /u/kieslowskifan's answer to How did the German-born Katherine get Russian troops, priests and nobles to help her overthrow her Russian Romanov husband and install her as sole Empress?