 While in Madrid he befriended Ventura de la Vega and Juan Martínez Villergas.His most fruitful period was from 1848 to 1854, with more than twenty literary works, as well as collaborations with Rubí y Ventura de la Vega in the 1850 comedy "Un clavo saca otro clavo" (a hair of the dog).That same year he premiered his tragedy " Remismunda", perhaps the best of his plays that mixes classicism and romanticism.