In 1788, the king first fell ill while dining at Windsor Castle. He was diagnosed with a mental illness. After several relapses, in 1810 the king was confined to the royal chambers.