For years Frederick exchanged letters with Voltaire. He modernized the Prussian bureaucracy and civil service and promoted religious tolerance. Frederick patronized the arts and philosophers, and wrote flute music. Frederick is buried at his favorite residence, Sanssouci in Potsdam. Because he died childless, Frederick was succeeded by his nephew, Frederick William II of Prussia, son of his brother, Prince Augustus William of Prussia.