 He consequently resigned from the Imperial Russian Army in 1863 to serve as minister of war for the January Uprising, a Polish insurrection, in the Vilnius region.He determined never to sentence anyone to death nor to execute any prisoner.When the Poles rose against the Russians in 1863, Raphael joined them and was soon taken prisoner.