Thyme plants thrive in well-draining, sandy or loamy soil with good drainage. The soil should have a slightly alkaline to neutral pH. Thyme is known to tolerate poor soil conditions but prefers well-drained, moderately fertile soil.