Jonathan Martin, the retired football player who left the Miami Dolphins in 2013 after accusing teammates of bullying, said Wednesday that he had attempted suicide “on multiple occasions” because of long-simmering identity struggles and the stresses of the N.F.L.

In a lengthy post on his Facebook page that was shared to Twitter on Wednesday, the former offensive lineman detailed the mental difficulties that he hoped his on-field accomplishments would help ease. They did not, and the locker room was one of many environments in which he said he felt like an outsider.

“Your job leads you to attempt to kill yourself on multiple occasions,” he wrote, apparently referring to himself. “Your self-perceived social inadequacy dominates your every waking moment and thought. You’re petrified of going to work. You either sleep 12, 14, 16 hours a day when you can, or not at all. You drink too much, smoke weed constantly, have trouble focusing on your job, playing the sport that you grew up obsessed with.”

Martin has made few public statements since the N.F.L. was roiled by the bullying scandal in 2013. A report by Ted Wells found the clubhouse harassment “humiliated Martin and contributed to his mental health issues.” Other Dolphins players have denied their part in bullying.