Principality of Lüneburg
The era of the town's greatest prosperity began in 1664, when Hamelin became a fortified border town of the Principality of Calenberg. In 1705, it became part of the newly created Electorate of Hanover when George Louis, Prince of Calenberg, later King George I of Great Britain, inherited the Principality of Lüneburg.