Cucumbers can be grown in well-drained soil, although they do best in loose sandy loam soil. Growing cucumbers need direct sunlight. Avoid planting them where tree roots will rob them of water and nutrients because their roots can reach depths of 36 to 48 inches.