In the Second Partition of Poland in 1793, the Kingdom of Prussia annexed Gdańsk (Danzig) and Toruń (Thorn), part of the Crown of Poland since 1457. The incursion sparked the first Greater Poland Uprising in Kujawy under Jan Henryk Dąbrowski. The revolt ended after General Tadeusz Kościuszko was captured by the Russians.