He wrote the Brazilian National Anthem, first as a patriotic march, since Dom Pedro I's resignation, later being officialized as anthem by the Brazilian Republic Revolution (1889). He also composed one opera, "O prestigio da lei".