The occurrence of the alkaloidsN-formyl andN-acetyl loline, peramine, lolitrem B, and ergovaline and the response of aphids to plants containing these compounds were determined in species and cultivars ofFestuca,Lolium, and other grass genera infected with fungal endophytes (Acremonium spp., andEpichloe typhina). Twenty-nine of 34 host-fungus associations produced one or more of the alkaloids, most frequently peramine or ergovaline. Three alkaloids (lolines, peramine, and ergovaline) were found in tall fescue and in perennial ryegrass infected withA. coenophialum, while peramine, lolitrem B, and ergovaline were present in perennial ryegrass and in tall fescue infected withA. lolii and inF. longifolia infected withE. typhina. WhileA. coenophialum andA. lolii produced similar patterns of alkaloids regardless of the species or cultivar of grass they infected, isolates ofE. typhina produced either no alkaloids or only one or two different alkaloids in the grasses tested. Aphid bioassays indicated thatRhopalosiphum padi andSchizaphis graminum did not survive on grasses containing loline alkaloids and thatS. graminum did not survive on peramine-containing grasses. Ergovaline-containing grasses did not affect either aphid.