 The second prime minister elected was Vassan-Girey Dzhabagiev, an Ingush statesman, who also was the author of the constitution of the republic in 1917, and in 1920 he was re-elected for the third term.In 1921 the Russians attacked and occupied the country and forcefully absorbed it into the Soviet state.The Caucasian war for independence restarted, and the government went into exile.