When the November Uprising began, Szwernicki enlisted in uhlan's regiment, commandeered by Józef Dwernicki. He was twice wounded, in the Battle of Stoczek and the Battle of Nowa Wieś. After the uprising collapsed he went back to the monastery; there, in 1832, he finished middle school.