Orobanche cumana is an obligate holoparasitic plant with noxious effects in sunflower crops. Bellardia trixago is a facultative hemiparasitic plant that infects ruderal plants without noxious significance in agriculture and is known to produce a wide spectrum of bioactive metabolites. The objective of this study was to evaluate the allelopathic effects of B. trixago on the growth of O. cumana seedlings. Three different extracts using solvents of increasing polarity (n-hexane, dichloromethane and ethyl acetate) were prepared from the flowers, aerial green organs and roots of two populations, a white-flowered and a yellow-flowered population of B. trixago, both collected in southern Spain. Each extract was studied using allelopathic screenings on O. cumana which resulted in the identification of allelopathic activity of the ethyl acetate extracts against Orobanche radicles. Five iridoid glycosides were isolated together with benzoic acid from the ethyl acetate extract of aerial green organs by bio-guided purification. These compounds were identified as bartsioside, melampyroside, mussaenoside, gardoside methyl ester and aucubin. Among them, melampyroside was found to be the most abundant constituent in the extract (44.3% w/w), as well as the most phytotoxic iridoid on O. cumana radicle, showing a 72.6% inhibition of radicle growth. This activity of melampyroside was significantly high when compared with the inhibitory activity of benzoic acid (25.9%), a phenolic acid with known allelopathic activity against weeds. The ecotoxicological profile of melampyroside was evaluated using organisms representing different trophic levels of the aquatic and terrestrial ecosystems, namely producers (green freshwater algae Raphidocelis subcapitata and macrophyte Lepidium sativum), consumers (water flea Daphnia magna and nematode Caenorhabditis elegans) and decomposers (bacterium Aliivibrio fischeri). The ecotoxicity of melampyroside differed significantly depending on the test organism showing the highest toxicity to daphnia, nematodes and bacteria, and a lower toxicity to algae and macrophytes. The findings of the present study may provide useful information for the generation of green alternatives to synthetic herbicides for the control of O. cumana.