The prefrontal cortex (we’ll call it the PFC), essentially the front part of your brain, is the part that is in charge of executive functioning, which includes problem-solving, goal-oriented behaviors, and managing social interactions according to expectations of what is “appropriate.” Essentially, executive function is just straight up thinking.