After the crusade, the territory of present-day Southern Estonia and Latvia was named Terra Mariana, but later it became known simply as Livonia. Northern Estonia became the Danish Duchy of Estonia, while the rest was divided between the Sword Brothers and prince-bishoprics of Dorpat and Ösel–Wiek. In 1236, after suffering a major defeat, the Sword Brothers merged into the Teutonic Order becoming the Livonian Order. In the next decades there were several uprisings against foreign rulers on Saaremaa. In 1343, a major rebellion started, known as the St. George's Night Uprising, encompassing the whole area of Northern Estonia and Saaremaa. The Teutonic Order finished suppressing the rebellion in 1345, and the next year the Danish king sold his possessions in Estonia to the Order. The unsuccessful rebellion led to a consolidation of power for the Baltic German minority. For the subsequent centuries they remained the ruling elite in both cities and the countryside.