Larrea was born into a noble family. Excelling in theological studies, he became a pastor in the town of Terriente in 1760.
In 1775, he was appointed canon of Zaragoza. Here he became invested in the botanical garden of the city, and experimented on the making of carmine dye and the spinning of silk.