Phentermine primarily works by increasing the levels of norepinephrine in the brain, which leads to appetite suppression and increased energy expenditure.