Pedro Urdemales (Spanish: "Peter Evil-schemer") is a character from Spanish and Latin American (especially Chilean, Mexican, and Guatemalan) folklore that typifies the rogue, rascal or trickster.
In Brazil, Portugal and lusophone culture, he is known as Pedro Malasartes[1][2] (Portuguese: "Peter Bad-arts").
The oldest documented reference was found in the late 12th century, in an Aragonese paper, in which a character is named Pedro de Urdemalas ("Peter of Bad-things-schemer" in Aragonese).
[3] The first literary mention is located in the book Libro del paso honroso, by Suero de Quiñones, possibly written in 1440.
Shortly after, new references are found in theatrical authors about this character, where he becomes a prototype of a ruffian in several entremeses (interludes).