Trichocereus macrogonus, synonym Echinopsis macrogonus, is a species of cactus found in Ecuador, Peru and Bolivia. Two varieties are accepted as of September 2023: var. macrogonus and var. pachanoi. Plants contain varying amounts of the psychoactive alkaloid mescaline. They have been used both ritually and in traditional medicine from pre-Columbian times. Trichocereus macrogonus is one of a number of similar species that may be called San Pedro cactus. Indigenous names include achuma and huachuma, although these too may be applied to similar species.