Mazzini's activity in revolutionary movements caused him to be imprisoned soon after he joined. While in prison, he concluded that Italy could − and therefore should − be unified, and he formulated a program for establishing a free, independent, and republican nation with Rome as its capital.