in 1314 the two towns joined the hanseatic league. in the thirty years' war (1618-1648) the towns were robbed and destroyed. potsdam became the new capital, and the royal court left the town of brandenburg. in 1715 the two halves of the town were merged to form a single town.