Both Yucca plant and the moth cannot complete their life cycles without each other. The moth deposits its eggs in the locule of the ovary and the flower in turn, gets pollinated by the moth. The larvae of the moth come out of the eggs as the seeds start developing.