Complex sentence: The Schmalkaldic War with the defeat of the Hessians and the Ernestines against the emperor in 1547 gave the city its independence back in parts, in foreign policy it had to coordinate with the Albertines and it had to pay taxes to the empire.
Split into simpler sentences: The Schmalkaldic War resulted in the the defeat of the Hessians and the Ernestines by the emperor in 1547 and partially returned the city's independence. In foreign policy it had to coordinate with the Albertines and it had to pay taxes to the empire.