In 1875 Hryniewiecki left for Saint Petersburg, where he enrolled in mathematics at the Polytechnic.
In 1880 Hryniewiecki, Andrei Zhelyabov, Sophia Perovskaya and others were in charge of revolutionary propaganda among students and workers.