Louis II ruled as Grand Duke of Baden from 24 April 1852 until his death on 22 January 1858. Because he had a mental illness, his younger brother Frederick governed as regent. In 1856, the illness was judged permanent and irreversible, and Frederick became Grand Duke.
Born on 15 August 1824, Louis was the son of Leopold I, later Grand Duke of Baden, and Princess Sophie of Sweden. His paternal uncle, Louis I, was Grand Duke when he was born. After his father inherited the throne when Louis was 7, Louis and his younger brother received a modern education and travelled with their family to northern Italy and the Netherlands.
From December 1842 to May 1843, Louis and Frederick stayed in Vienna, where they met senior Austrian officials. Louis later studied at the University of Heidelberg. He was also made an honorary citizen of Karlsruhe.