Yes, several rulers had serious mental illness
The short answer is yes. A number of kings and queens were described by contemporaries as seriously ill in mind, and some were removed from power or governed through others. Still, the label “mad” is unscientific, and the details come from records that are often incomplete or biased.
Charles VI of France
Charles VI (reigned 1380–1422) had his first well-known episode in 1392, when he reportedly attacked members of his own party during a military expedition. Over the following decades he had repeated bouts. Accounts say that at times he did not recognize his family and that he believed his body was made of glass. Rival royal relatives competed for control, and France suffered during the Hundred Years’ War. He was nicknamed “the Beloved” and also “the Mad.”
George III
George III of Britain (reigned 1760–1820) had episodes of illness, notably in 1788–89 and in later years. After a final long period beginning in 1810–11, his son governed as Prince Regent. Explanations have included porphyria and a mental illness, but historians still debate the cause.
Henry VI of England
In 1453 Henry VI became unresponsive for around a year and did not seem to recognize those around him, according to later accounts. His condition and the struggle for control that followed contributed to the Wars of the Roses. Henry was deposed and died in 1471.
Juana of Castile
Juana (1479–1555) inherited the Castilian throne but spent decades confined at Tordesillas. She is traditionally called “Juana la Loca,” or Joanna the Mad. Some historians think her mental state was exaggerated and that relatives who wanted to rule in her name had reasons to keep her confined.
Christian VII of Denmark and Ludwig II of Bavaria
Christian VII (reigned 1766–1808) showed severe mental instability and left much of the work of government to others. Ludwig II of Bavaria, known for building fairy-tale castles, was declared unfit to rule in 1886 and died days later in circumstances that remain debated.
What happened when a king could not rule
Realms usually relied on regents, councils or a close relative. This sometimes worked, as in the Regency period in Britain, and sometimes led to civil strife. Succession rules mattered here, which is covered in our article on types of royal succession.
Caution about diagnosing the dead
Modern writers often propose diagnoses from old descriptions, but evidence is thin. Another complication is that some stories of madness were propaganda. For rulers whose reputations are bad without clear illness, see our discussion of the most insane and chaotic historical figures, and our overview of insane rulers in history.