Spanish bayonet should never be planted near walkways or terraces because of its sharply pointed, dagger-like leaves. The plants are best planted alone or in groups of three, in the background rather than at the front of beds. In the wild, yuccas grow in full sun on dry soil. They tolerate a wide range of soil conditions as long as the soil is not too wet. Set out potted plants from spring through fall.
Little maintenance is required.
Remove the flower stalks after blooming. Pollination of most species is done by the pronuba moth. The yucca is entirely dependent on this moth and vice-versa. The seeds are black, flat and look like little wafers. They usually occur in great numbers.