Facing a coalition which included Austria, France, Russia, Saxony, and Sweden, and having only Great Britain and Hanover as his allies, Frederick narrowly kept Prussia in the war despite having his territories frequently invaded.