text: Frederick was a supporter of enlightened absolutism, stating that the ruler should be the first servant of the state. He modernised the Prussian bureaucracy and civil service, and pursued religious policies that ranged from tolerance to segregation. He reformed the judicial system and made it possible for men of lower status to become judges and senior bureaucrats. Frederick encouraged immigrants of diverse backgrounds to come to Prussia. While Protestantism remained the favored faith, he allowed religious freedom and tolerated Jews and Catholics in Prussia, however his actions were not entirely without prejudice. He supported the arts and philosophers he favoured, and allowed freedom of the press and literature. Frederick was almost certainly homosexual, and his sexuality has been the subject of much study. Because he died childless, he was succeeded by his nephew, Frederick William II. He is buried at his favourite residence, Sanssouci in Potsdam.
  Nearly all 19th-century German historians made Frederick into a romantic model of a glorified warrior, praising his leadership, administrative efficiency, devotion to duty and success in building Prussia into a great power. Frederick remained an admired historical figure through Germany's defeat in World War I, and the Nazis glorified him as a great German leader prefiguring Adolf Hitler, who personally idolised him. His reputation became less favourable in Germany after World War II, partly due to being symbolically adopted by the Nazis as a historical hero. Historians in the 21st century tend to view Frederick as an outstanding military leader and capable monarch, whose commitment to enlightenment culture and administrative reform built the foundation that allowed the Kingdom of Prussia to contest the Austrian Habsburgs for leadership among the German states.