qnli question: In what year was the city annexed to the German Empire? sentence: In 1871, after the end of the war, the city was annexed to the newly established German Empire as part of the Reichsland Elsass-Lothringen under the terms of the Treaty of Frankfurt.