Cognitive control enables us to configure information processing to achieve our behavioral goals. Although a top-down process, cognitive control can itself be subject to metacontrol, where regularities of control demand guide its deployment to achieve cognitive flexibility. I will discuss recent work from my lab that investigated and demonstrated different forms of flexibility in task switching and some theoretical implications of these results.