After joining the Russian army, he became a member of the Socialist-Revolutionary Party, was arrested, and spent time in jail for "revolutionary propaganda". He published his first short-story in a newspaper in 1906. In the same year he was arrested in Saint Petersburg and sentenced to four years of exile in a remote area of Tobolsk Governorate. However, very soon after arriving in Tobolsk, Grin escaped and returned to Petersburg to live illegally. He was again arrested in 1910 and sent to live in Arkhangelsk Governorate. In a small village called Kegostrov, Grin and his first wife Vera Pavlovna Abramova (whom he married in 1910) lived from 1910 to 1912.