Ludwigsburg is a city in Baden-Württemberg, Germany, about 12 kilometres north of Stuttgart city centre, near the river Neckar. It is the largest and primary city of the Ludwigsburg urban district with about 87,000 inhabitants. It is situated within the administrative region (Regierungsbezirk) of Stuttgart.