The capital of the new state was moved to Temir-Khan-Shura (Dagestan). The first prime minister of the state was elected Tapa Chermoyev, a Chechen prominent statesman; the second prime minister was Ingush statesman Vassan-Girey Dzhabagiev who also was the author of the Constitution of the land in 1917. In 1920 he was reelected for a third term. In 1921 Russians attacked and occupied the country and forcefully merged it with the Soviet state. The Caucasian war for independence continued and the government went into exile.