The Treaty of Eger, also called Main Compromise of Eger or Peace of Eger was concluded on 25 April 1459 in the Imperial City of Eger (Cheb), administrative seat of the immediate pawn of Egerland. The treaty established the border between the Kingdom of Bohemia and the Electorate of Saxony on the main ridge of the Ore Mountains stretching from Eger to the River Elbe. The border remains largely unchanged up to today, separating the Czech Republic and Germany, and is thus one of the oldest still extant borders in Europe.