In 1826, he moved to Rio de Janeiro, in order to study painting with Jean-Baptiste Debret at the Escola Nacional de Belas Artes (at the time called the Academia Imperial de Belas Artes). He also studied at what is now the Academia Militar das Agulhas Negras and took a Medicine course and Philosophy. In 1831, he left Brazil along with Debret to Europe, in order to improve his painting techniques. In 1835, he went to Italy, where he met Gonçalves de Magalhães, another Brazilian poet. He and Magalhães would create in France, in the year of 1837, a short-lived magazine named "Niterói", alongside Francisco de Sales Torres Homem. Also in 1837, he becomes history painting teacher at the Escola Nacional de Belas Artes, in a post that would last until 1848, when he would become a drawing teacher at the Academia Militar das Agulhas Negras, and starts doing his first caricatures. In 1838, he married Ana Paulina Delamare, having with her two children: Carlota Porto-Alegre (the future wife of painter Pedro Américo) and future diplomat Paulo Porto-Alegre.