After recovering from a serious illness in 1819–20, Goya painted this portrait of one of his close friends. The sitter was an architect, and responsible for the design of the medical school on the Calle de Atocha in Madrid. He was elected to the Academy of Fine Arts of San Fernando in 1818. This is perhaps one of the most engaging of Goya's male portraits. Pérez's rolled-up sleeves and slight smile suggest a directness and warmth that are rare in the artist's oeuvre.