Between 1460 and 1864, Flensburg was, after Copenhagen, the second biggest port in the Kingdom of Denmark, but it passed to the Kingdom of Prussia after the Second Schleswig War in 1864. The Battle of Flensburg was on February 6, 1864: near the city a small Hungarian mounted regiment chased a Danish infantry and Dragoon regiment. There is still a considerable Danish community in the town today. Some estimates put the percentage of Flensburgers who belong to it as high as 25%; other estimates put that percentage much lower. The SSW political party representing the minority usually gains 20–25% of the votes in local elections, but by no means are all of its voters Danes. Before 1864, more than 50% belonged to what is now the minority, witnessed even today by the great number of Danish surnames in the Flensburg telephone directory ("Asmussen, Claussen, Jacobsen, Jensen, Petersen," etc.). The upper classes and the learned at that time, however, were German, and since 1864, the German language has prevailed in the town.