His parents originally expected him to join the family business, but eventually recognized his talent and enrolled him at the Academia de San Carlos. By 1844, he was so accomplished that his father gathered together as much money as he could and sent him to study in Rome at the Accademia di San Luca. His primary instructor there was the Spanish painter, Pelegrí Clavé, but he also came under the influence of the Nazarene movement and Filippo Agricola. Later, his works were noticed by former Mexican PresidentAnastasio Bustamante, who was living in exile. Bustamante arranged for Cordero to be given a position with Mexico's legation at the Holy See, which allowed him to stay there until 1853. He returned home with several large canvases that he exhibited at the Academy, to great success. This created a rivalry with his former teacher, Clavé, who had moved to Mexico and was now the Academy's Director. Soon, the rivalry took on political overtones, as Cordero was a Liberal, while Clavé was a Conservative. Cordero made an effort to supplant Clavé as Director, with the support of General Santa Anna, whose equestrian portrait he had recently painted, but the Academy's board chose to retain Clavé. 's wife, Doña Dolores Tosta de Santa Anna. From 1860 to 1867, he travelled throughout Mexico, painting portraits. He then turned to painting murals, including the cupola at the Church of Santa Teresa la Antigua, which had been destroyed by an earthquake in 1845 and rebuilt by the Spanish architect. He was also a friend of Gabino Barreda who, in 1874, asked him to paint a mural at the National Preparatory School, which would later become the home of the Mexican muralism movement. It was called "The Triumph of Science and Industry Over Ignorance and Sloth", and was the first Mexican mural on a secular philosophical theme. In 1900, it was destroyed by the school's Director, and replaced by a stained-glass window. Before its destruction, it was apparently copied by Juan de Mata Pacheco, but it is not certain that his painting of the same name is an accurate reproduction. After 1875, Cordero stopped exhibiting. This may have been a reaction to the political situation created by Porfirio Díaz' coup in 1876. A major retrospective exhibition was held at the Palacio de Bellas Artes in 1945.