Plant foxglove in full sun to part shade, in moist, well-drained soil high in organic matter. It prefers acidic soil and does best with afternoon shade. Where summers are hot, a spot with morning sun and afternoon shade suits it. Avoid soggy, poorly drained ground, where the dense crowns can rot in winter.
Foxgloves are hardy in zones 4 to 9, though some varieties are hardy only to zone 5. Plant them in spring after the last frost, 12 to 18 inches apart. In hot southern gardens, foxgloves are often grown as cool-season annuals: planted in fall or winter, they bloom in spring or early summer and usually die in the summer heat.
Use foxglove to add height to a perennial border, cottage garden, pollinator garden or shade garden, or plant a group in front of a wall, fence, hedge or large shrubs. Hummingbirds and bumblebees visit the flowers. All parts of the plant are toxic if eaten, and it is a problem for children, dogs, cats and horses. Contact with the leaves can irritate sensitive skin. Deer and rabbits usually leave it alone.