Thyme prefers hot, dry conditions similar to its native Mediterranean environment and thrives in well-draining, sandy soil with full sun exposure. To preserve thyme for year-round use, it can be dried, frozen, or infused into oils.