Only two foreign princes were ever created Infantes of Portugal.
The first was the spanish Infante D.Pedro Carlos de Borbon y Braganza.
He was the son of Infante Gabriel of Borbon, the brightest of Carlos III's sons and allegedely his favourite, and Infanta D. Mariana Victória de Bragança.
Both Gabriel and Mariana died suddenly from smallpox in 1788 when Pedro Carlos was only 2 years old.
In 1788, Queen D.Maria I, had also lost, her elder son, Prince D.José who died w/o issue.
Her second son, D.João (VI), had married the infamous Carlota Joaquina of Spain, Gabriel's niece, but, in 1788, the marriage had not been consumated as Carlota Joaquina was only 13 years old.
So, by 1788, Pedro Carlos was the Queen's only grandson, reason why the Queen asked for him to be send to Portugal and raised as a Portuguese prince and eventual successor.
Carlos IV of Spain accepted and the Prince was dispatched to Portugal where he was created Infante of Portugal - he was by birth Infante of Spain.
Pedro Carlos grew up in the Portuguese court, accompanied the RF to Brazil in 1808, and married his cousin Infanta D.Maria Teresa de Bragança, elder daughter of D.João VI and D.Carlota Joaquina in Rio de Janeiro in 1810.
The wedding did not last long (1810-12) as Pedro Carlos died suddenly, leaving a son, D.Sebastião de Borbon y Braganza, the second and last Infante of Portugal and Spain.