Spanish bayonet has dramatic flower spikes and sharp, pointed foliage. This plant is sure to grab attention, especially if you get too close to its stiff, dagger-like leaves. These spiked leaves have been known to pierce through even thick clothing, so select a planting location away from walkways and areas where people or pets could come into contact with the plant. Savvy gardeners actually take advantage of this feature and plant Spanish bayonet as a security precaution, under windows and other areas of access, or as a living fence. Just be sure to plant it behind other plants, putting space between it and people.
Sometimes called aloe yucca, Spanish bayonet doesn’t just attract attention from human visitors—butterflies are also attracted to the fragrant blossoms of this striking plant.
Source: UF|IFAS Gardening Solutions