In 1871 he composed his first opera, "Davide Rizio", libretto by Enrico Costa, countryman and cousin of Canepa. The opera in three acts, based on the life of David Rizzio and Mary Stuart, was performed for the first time at the Teatro Carcano in November of the following year and then bought by the publisher Lucca, who took her on stage in many Italian cities and Barcelona.