It's best to apply coconut oil on clean hair. Clean hair allows the coconut oil to penetrate more effectively, providing better nourishment and hydration. When applied to dirty hair, the oil may have difficulty reaching the hair shaft, and it could lead to an uneven distribution or buildup.