After the Napoleonic epoch, the town was included in the Grand Duchy of Baden. On September 21, 1848, Gustav Struve attempted to start a revolutionary uprising in Lörrach as part of the Revolutions of 1848–49. It failed, and Struve was caught and imprisoned. Still, Lörrach was officially the capital of Germany for a day.