Ludwigsburg is a city in Baden-Württemberg, Germany, about 12 kilometres (7.5 mi) north of Stuttgart city centre, near the river Neckar. The Ludwigsburg Palace is a main attraction.