It was composed by D. Pedro IV, King Pedro IV of Portugal (also Emperor Pedro I of Brazil).
The composition was written by D. Pedro IV, a monarch with dual roles as King Pedro IV of Portugal and Emperor Pedro I of Brazil.