Vieira was born in Bissau, then a city of Portuguese Guinea. Originally trained as an electrician, he joined the African Party for the Independence of Guinea and Cape Verde (PAIGC) of Amílcar Cabral in 1960 and soon became a key player in the territory's guerrilla war against Portuguese colonial rule.