Complex sentence: In 1297 it was ceded by the count of Saarbucken to the Duke of Lorraine, and passed with Lorraine in 1766 to France, being transferred to Germany in 1871, with the Treaty of Frankfurt following the Franco-Prussian War.
Split into simpler sentences: In 1297 it was ceded by the count of Saarbucken to the Duke of Lorraine, and passed with Lorraine in 1766 to France. It was transferred to Germany in 1871, with the Treaty of Frankfurt following the Franco-Prussian War.