Between 1797 and 1802 he was the governor and captain-general for Portuguese Angola. After a journey that required him transit through Salvador da Baía, he arrived in Luanda on 28 July 1797, where he was installed on 1 August 1797. As governor of Angola he left several public works, that included the construction of the Governor's Palace in Luanda, and the installation in Calumbo, of an iron furnace, using the deposits in Golungo, initiating the extraction of the mineral in Angola. He also preoccupied himself with education in Angola and to issues of Catholic missionaries, where he solicited the closing of the "Junta of Missions", noting that this institution was did not function and unnecessary. On 18 March 1693, by royal decree, this institution was abolished. In its place, he proposed measures to attract more clergy, to be paid by the Royal Finances, without presenting testimonials to the Captains-mor.