Use "gain independence" in a sentence

1. Who will lead the country once you gain independence?

2. In 1789, Ouro Preto became the birthplace of the Inconfidência Mineira, a failed attempt to gain independence from Portugal.

3. The strong sense of political affinity and solidarity between India and Africa dates back several decades to when the peoples of India and Africa were engaged in an unremitting struggle to gain independence from colonial rule and to become arbiters of their own destinies.

4. The strong sense of political affinity and solidarity between India and Africa dates back to the several decades of the twentieth century when the peoples of India and Africa were engaged in an unremitting struggle to gain independence from colonial rule and to become arbiters of their own destinies.