The Cantiga de amigo (Portuguese: [kɐ̃ˈtiɣɐ ð(j) ɐˈmiɣu], Galician: [kaŋˈtiɣa ðe aˈmiɣo]) or Cantiga d'amigo (Old Galician-Portuguese spelling), literally a "song of a friend", is a genre of medieval lyric poetry, apparently rooted in a song tradition native to the northwest quadrant of the Iberian Peninsula. What mainly distinguishes the cantiga de amigo is its focus on a world of female-voiced communication. The earliest examples that survive are dated from roughly the 1220s, and nearly all 500 were composed before 1300. Cantigas d'amigo are found mainly in the Cancioneiro Colocci-Brancuti, now in Lisbon's Biblioteca Nacional, and in the Cancioneiro da Vaticana, both copied in Italy at the beginning of the 16th century (possibly around 1525) at the behest of the Italian humanist Angelo Colocci. The seven songs of Martin Codax are also contained, along with music (for all but one text), in the Pergaminho Vindel, probably a mid-13th-century manuscript and unique in all Romance philology.
In these cantigas the speaker is nearly always a girl, her mother, the girl's girl friend, or the girl's boyfriend. Stylistically, they are characterized by simple strophic forms, with repetition, variation, and parallelism, and are marked by the use of a refrain (around 90% of the texts). They constitute the largest body of female-voiced love lyric that has survived from ancient or medieval Europe. There are eighty-eight authors, all male, some of the better known being King Dinis of Portugal (52 songs in this genre), Johan Airas de Santiago (45), Johan Garcia de Guilhade (22), Juião Bolseiro (15), Johan Baveca (13), Pedr' Amigo de Sevilha (10), João Zorro (10), Pero Meogo (9), Bernal de Bonaval (8), Martim Codax (7). Even Mendinho, author of a single song, has been acclaimed as a master poet.