Yucca baccata (datil yucca or banana yucca) is a common species of yucca native to the deserts of the southwestern United States and northwestern Mexico, from southeastern California north to Utah, east to western Texas and south to Sonora and Chihuahua. It is also reported in the wild in Colombia.
The plant is known from the Great Basin, the Mojave, Sonoran, and Chihuahuan Deserts, in the states of Utah, California, Nevada, Arizona, Colorado, New Mexico, and Texas in the United States, and the state of Chihuahua in Mexico. It can be found in several habitat types, including Pinyon-Juniper, Sagebrush, and Ponderosa pine colonies at elevations generally between 1,500 and 2,500 meters.
It is associated with Yucca schidigera, Yucca brevifolia, Yucca arizonica, Yucca faxoniana, Agave utahensis, and other Agave species. It can be found among Sclerocactus, Pediocactus, Navajoa, and Toumeya species.
Yucca baccata occurs in a large area of the North American deserts and exhibits much variation across its range. Yucca baccata specimens from the higher, mountainous regions of the Rocky Mountains is winterhardy and tolerates extreme conditions.