The titular mentalist, Patrick Jane is a former psychic and stage performer, but took a job with the CBI when the serial killer Red John killed his wife and daughter after Patrick badmouthed him on TV, hoping to exact revenge.
Possessing exceptional knowledge of human behavior, extensive meditative and hypnotic training, a refined memory and superhuman deductive skills, Patrick Jane is one of the most valuable agents of the CBI in the fight against crime. Though technically he's not a cop, just a consultant.