Hungary was a significant German ally. It signed the Tripartite Pact on 20 November 1940, and joined in the invasion of the Soviet Union the next year. When, in 1944, the government of Regent Miklós Horthy wished to sign a ceasefire with the Allies, he was overthrown by the Nazis and replaced by a government run by the Hungarist Arrow Cross movement, which ruled the country until it was overrun by the Soviets in 1945.