Frederick the Great, the king of Prussia from 1740 to 1786, saw himself as a leader of the Enlightenment and patronized philosophers and scientists at his court in Berlin. Which Enlightenment theorist was extended an invitation to live at the palace after being iprisoned by the French government