Natural son of António Rego Barreto - army officer, adjutant of the 2nd Earl of Bobadela when he was Governor of weapons of Minho -was legitimized by his father in 1786, enlisted in 1790 at age 13, at the Infantry Regiment of Lippe, the Lisbon garrison, being lieutenant when the French invaded Portugal in 1807.