Research has shown that taking a break, or an "incubation interval," can facilitate creative problem solving. One interpretation of this phenomenon is that it allows for task-switching and attentional flexibility, which can improve creative performance. Task-switching may allow individuals to break their mental set and identify solutions that were previously unavailable. It may also encourage the alternation between idea generation and evaluation, leading to attentional flexibility. This chapter discusses the evidence for the benefits of attentional flexibility and its relationship to mind-wandering, and presents a new study on the potential sources of benefit for task-switching on creativity.