Son of the architect Rovira i Trias, he qualified as an architect from the Madrid School of Architecture in 1866 and within a short while he was building the belfry of the parish church of Les Corts in a style in keeping with that of the church, but with iron appliqués.
His properly Modernista buildings are Casa Casas-Carbó (1894; Passeig de Gràcia, 96), on whose interior decoration J. Pascó and J. Orriols worked, and Casa Codina (1898; Passeig de Gràcia, 94).
He also did some stage designing, such as the scenery for the Teatro Circo Barcelonés (Montserrat, 18; no longer in existence).
He taught at the Barcelona School of Architecture and published a number of textbooks.