In 1794 the area was taken by Prussia .
After the Partitions of Poland in 1794 the area was annexed by Prussia .