Worms (German) is a city in Rhineland-Palatinate, Germany, situated on the Upper Rhine about 60 kilometres (40 miles) south-southwest of Frankfurt-am-Main. It had approximately 85,000 inhabitants as of 2016. A pre-Roman foundation, Worms was the capital of the Kingdom of the Burgundians in the early 5th century and hence the scene of the medieval legends referring to this period, notably the first part of the Nibelungenlied. Worms has been a Roman Catholic bishopric since at least 614, and was an important palatinate of Charlemagne. Worms Cathedral is one of the Imperial Cathedrals and among the finest examples of Romanesque architecture in Germany. Worms prospered in the High Middle Ages as an Imperial Free City. Among more than a hundred Imperial Diets held at Worms, the Diet of 1521 (commonly known as the Diet of Worms) ended with the Edict of Worms in which Martin Luther was declared a heretic. Today, the city is an industrial centre and is famed as the origin of Liebfraumilch wine. Other industries include chemicals and metal goods.