First Baltic War

In Episode IX of Brazilian's Varna series, the First Baltic War was a conflict that took place in Northern Europe from 1506 to 1508, which saw Poland gain a Baltic Sea coast (though Lithuania already had one), and the final collapse of the Kalmar Union.
Sides	"Red" 	"Blue" 	"Green" 	RESULT
Sides	Poland (& Lithuania & Hungary), Livonia	Teutonic Order, Kalmar Union	Novgorod Republic, Finno-Sami Confederation	"Blue" and "Green" victory
The conflict began in August 1506, when the Livonian Confederation seceded from the Teutonic Order. The two were separated by either the Baltic Sea, or by Lithuanian lands. Therefore, when the Teutons declared their ambitions to reconquer Livonia, they found themselves being invaded by Lithuania and Poland, with Hungarian and Livonian backing.
"First their king becomes the grand duke of Lithuania. Then he also becomes the king of Hungary. Together they crush the feared Ottoman Empire, and now they are expanding their influence to the Baltic, my homeland... no more." - Kalmar Union, January 1507
The Kalmar Union had been watching Polish expansion, and were greatly concerned by it. In February 1507, they declared war on Livonia and began invading from the west, defeating the Livonian Bishopric of Osel-Wiek. However, in July, with the Polish-Lithuanian capture of Königsberg, the Teutons surrendered. The Kalmar Union now stood alone as the Novgorod Republic saw the opportunity and began invading Vyborg. At the same time, the Finnic and Sami tribes declared a unified Finno-Sami Confederation, who fought beside Novgorod. This began to create an internal fracture in the Kalmar Union.
As the Kalmar Union advanced on Riga and Åbo (Turku) for two brief battles which they lost, Novgorod continued to advance in Vyborg and the Finns and Sápmi continued to rise up all over the Finnish territories of the Kalmar Union. The Swedish contingent of the union felt that they were bearing the brunt of the assaults in Livonia and Finland, so they seceded from the Kalmar Union. Soon Denmark was left alone when Norway seceded from the union and proposed an end to the conflict, which was ratified through the Treaty of Riga on December 13th, 1508:
# The Teutonic Order shall recognise the full independence of the Livonian Confederation.
# The Teutonic Order shall cede:
#* Memel to Lithuania
#* Pomerelia and Gdansk to Poland
# The Teutonic Order shall become a Polish vassal state.
# The Kalmar Union shall be officially dissolved and replaced with the constituent kingdoms of Denmark, Sweden and Norway,
# Livonia shall cede Osel-Wiek to Sweden.
# Novgorod shall annex:
#* Vyborg from Sweden
#* Savonia
# Sweden shall recognise the independence of the Finno-Sami Confederation, and withdraw their troops.