The history of the town dates back to the end of the 13th century.
The oldest known mention comes from a document from 1284.
In 1346 it was granted municipal rights, and in 1398 the settlement obtained the status of a town.
The town's name comes from the Old Polish word kościerz, which means "thicket".
Kościerzyna was part of medieval Poland, until, in 1310, it was annexed by the Monastic State of the Teutonic Knights.
After the Second Peace of Thorn (1466), the town became part of the Kingdom of Poland again.
Administratively it was part of the Pomeranian Voivodeship, located in the provinces of Royal Prussia and Greater Poland.
It was the seat of local Polish starosts.
Kościerzyna was a small town, whose inhabitants made a living from trade, crafts and farming.

The town suffered many times from fire.
In 1463 it was first plundered and thereafter burned down completely by Poles during the Thirteen Years' War.
In 1626, during the Polish–Swedish War (1626–29), it was completely burned down once more.
During the years 1646, 1663 and 1669 it partly burned down, and in 1709 again, entirely.

In the First Partition of Poland in 1772 the town was annexed by Kingdom of Prussia.
It was administratively in the newly formed province of West Prussia, where it remained until 1919.
The town was subjected to anti-Polish policies, including Germanisation.
During the Kashubian diaspora, many families from Kościerzyna, such as the Mrozeks, the Pellowskis and the Eichmans emigrated to the area of Winona, Minnesota, in the United States, beginning in 1859.
Despite Germanisation policies, the town was a center of Polish activity in the 19th century.
In 1863, volunteers set out from the town to fight in the Polish January Uprising in the Russian Partition of Poland, but few managed to cross the Prussian-Russian border, while many were imprisoned by Prussians.
Around 1900, the town had one Protestant church, one Catholic church, a synagogue, a high school, an academy for school teachers, a factory for the production of snuff, several breweries, a refinery, various mills, agriculture and forestry.
In the late 19th and early 20th century Poles founded various organizations, including the "Sokół" Polish Gymnastic Society, reading rooms, Bank Ludowy ("People's Bank"), and the Kashubian newspaper Gryf began publishing.
Writer and activist Aleksander Majkowski was active in the town.

After Poland regained independence after World War I in 1918, the Polish population made efforts to reintegrate the town with Poland.
In January 1919, the Germans sent a unit of 120 soldiers to the town to prevent the outbreak of a Polish uprising.
Local activist Tomasz Rogala, who co-founded a secret Polish independence organization, went to the peace conference in Versailles, where he demanded to include the town in reborn Poland.
Kościerzyna was finally reintegrated with the Second Polish Republic in January 1920.
The construction of the Polish Coal Trunk-Line in the interbellum contributed to the prosperity of Kościerzyna, as the town gained a modern railway connection with Gdynia, Bydgoszcz and Upper Silesia.
The history of the town dates back to the end of the 13th century. The oldest known mention comes from a document from 1284. In 1346 it was granted municipal rights, and in 1398 the settlement obtained the status of a town. The town's name comes from the Old Polish word kościerz, which means "thicket". Kościerzyna was part of medieval Poland, until, in 1310, it was annexed by the Monastic State of the Teutonic Knights. After the Second Peace of Thorn (1466), the town became part of the Kingdom of Poland again. Administratively it was part of the Pomeranian Voivodeship, located in the provinces of Royal Prussia and Greater Poland. It was the seat of local Polish starosts. Kościerzyna was a small town, whose inhabitants made a living from trade, crafts and farming.
The town suffered many times from fire. In 1463 it was first plundered and thereafter burned down completely by Poles during the Thirteen Years' War. In 1626, during the Polish–Swedish War (1626–29), it was completely burned down once more. During the years 1646, 1663 and 1669 it partly burned down, and in 1709 again, entirely.
In the First Partition of Poland in 1772 the town was annexed by Kingdom of Prussia. It was administratively in the newly formed province of West Prussia, where it remained until 1919. The town was subjected to anti-Polish policies, including Germanisation. During the Kashubian diaspora, many families from Kościerzyna, such as the Mrozeks, the Pellowskis and the Eichmans emigrated to the area of Winona, Minnesota, in the United States, beginning in 1859. Despite Germanisation policies, the town was a center of Polish activity in the 19th century. In 1863, volunteers set out from the town to fight in the Polish January Uprising in the Russian Partition of Poland, but few managed to cross the Prussian-Russian border, while many were imprisoned by Prussians. Around 1900, the town had one Protestant church, one Catholic church, a synagogue, a high school, an academy for school teachers, a factory for the production of snuff, several breweries, a refinery, various mills, agriculture and forestry. In the late 19th and early 20th century Poles founded various organizations, including the "Sokół" Polish Gymnastic Society, reading rooms, Bank Ludowy ("People's Bank"), and the Kashubian newspaper Gryf began publishing. Writer and activist Aleksander Majkowski was active in the town.
After Poland regained independence after World War I in 1918, the Polish population made efforts to reintegrate the town with Poland. In January 1919, the Germans sent a unit of 120 soldiers to the town to prevent the outbreak of a Polish uprising. Local activist Tomasz Rogala, who co-founded a secret Polish independence organization, went to the peace conference in Versailles, where he demanded to include the town in reborn Poland. Kościerzyna was finally reintegrated with the Second Polish Republic in January 1920. The construction of the Polish Coal Trunk-Line in the interbellum contributed to the prosperity of Kościerzyna, as the town gained a modern railway connection with Gdynia, Bydgoszcz and Upper Silesia.
Kościerzyna