Transplant the shrubs into the garden, setting them at the height at which they grew in their containers. It grows well in sand, clay, rocky soil or loam, and toleratesSt. John's wort adapts to both moist and dry soil, and even tolerates occasional flooding.