Psychotherapy is the first line of treatment for borderline personality disorder, but medication can help to manage some symptoms.