executive function
Executive function is the set of mental skills your brain uses to manage itself and stay on track toward a goal. Think of it as the air-traffic controller of the mind: while many planes (thoughts, urges, and habits) are trying to take off and land at once, this controller decides which one goes when, holds the others back, and keeps the whole airport from descending into chaos. It is not a single thing you do, but the behind-the-scenes steering that makes everything else you do organized and purposeful.
Scientists usually break it into three core abilities. The first is holding information in mind and working with it for a few seconds, so you can carry a phone number from the page to the keypad. The second is inhibition, the power to stop an automatic or tempting response, like not blurting out an answer or not reaching for the cookie. The third is mental flexibility, the knack of switching between tasks or rules and seeing a problem from a fresh angle when your first approach fails. Together these let you plan a series of steps, resist distractions, and adjust on the fly instead of running on autopilot.
These control processes lean heavily on the prefrontal cortex, the front region of the brain just behind the forehead, working in concert with deeper structures. Because that region is one of the last to fully mature, executive function keeps strengthening from childhood into the mid-twenties, and it can weaken with fatigue, stress, aging, or injury, which is why a tired or frazzled person finds it so much harder to plan, focus, and hold back.
Executive function is an umbrella term for several cooperating skills, not one isolated brain ability, and researchers still debate exactly how to divide it up.