Lavender is best grown in a sunny location. The more sun, the better. In climates with cold winters, a sheltered, sunny location--perhaps next to a sunny wall--will ensure adequate warmth and light.
Native to the rocky soils of the Mediterranean, a well-drained site is essential for success with lavender. You can enhance drainage with the addition of gravel, sand and organic matter, dug deeply into the planting site.
Container gardening provides an opportunity to create the ideal environment for lavender. A well-draining potting medium, and a carefully chosen, sunny site can guarantee success in gardens with too much shade or poor drainage.