Despite that previous studies have investigated mind wandering using task-switching paradigms, the association between the tendency to mind wander and cognitive flexibility remains largely unexplored. The present study investigated the relationship between self-reported spontaneous mind-wandering tendencies and task-switching performance in young adults. Seventy-nine university students performed a forced task-switching and a voluntary task-switching paradigm and then completed a battery of questionnaires. The results showed that compared to participants with lower spontaneous mind-wandering tendencies, participants with higher spontaneous mind-wandering tendencies demonstrated better performance (evidenced by smaller switch cost reaction times) in the forced task-switching paradigm despite indicating more mind wandering during task performance. Performance on the voluntary task-switching paradigm, on the other hand, did not differ between the two groups. The findings in the forced task-switching paradigm indicate a link between mind wandering and cognitive flexibility, thus providing initial evidence in favor of a role for switching in mind wandering.