(+)-Loline Dihydrochloride is an alkaloid isolated from fungal endophytes, an endosymbiont that lives within a plant. Loline alkaloids were found to provide protection of host plants from aphids herbivory and environmental stresses such as drought and spatial competition.