His father suffered from serious psychological problems, including suspected schizophrenia expressed by catatonic periods which resulted in the king ceding power to his doctor, Johann Friedrich Struensee. From 1770 to 1772, Struensee was de facto regent and lover of Caroline Matilda, Frederick's mother. Both were ideologically influenced by Enlightenment thinkers such as Voltaire and Jean Jacques Rousseau. While Struensee was in power, young Frederick was raised at Hirschholm Palace following the educational approach advocated by Rousseau in his famous work "Émile". Instead of receiving direct instruction, Frederick was expected to learn everything through his own efforts through playing with two commoner boys as per Struensee's instructions.