Kostka-Napierski served in the Swedish army as a mercenary during the Thirty Years' War. He returned to Poland after the death of Władysław IV Vasa. He contacted Bohdan Khmelnytsky, attempting to expand the his revolt onto Tatra Polish lands and became the leader of the Tatra highlands peasants ("Górale"),