The FDNY discriminated against a former US Marine because he has post-traumatic stress disorder, the Equal Employment Opportunity Commission ruled Wednesday.

Joseph Leopold, who was honorably discharged from the Marines in 2005, passed the FDNY’s physical and written psychological evaluations when he applied to be an FDNY firefighter in 2011, according to his lawyers and the EEOC ruling.

But, in a 15-minute interview with an FDNY psychiatrist in 2016, he was disqualified from the hiring process because of his PTSD, the ruling states.

“The doctor made such generalized statements to him as ‘people with PTSD can’t socialize’ and ‘having a job is difficult’ if you suffer from PTSD,” according to the EEOC ruling.

The EEOC determined Leopold was discriminated against — and other rejected applicants who suffer from PTSD were also unfairly treated during the hiring process.

“Veterans’ groups have known for a long time that the FDNY was doing this, and I’m glad the EEOC called this what it is – unfair, and illegal discrimination,” Leopold said in a statement released by his lawyer on Wednesday.

“Plenty of active, successful FDNY firefighters have a PTSD diagnosis and do the job just fine. It doesn’t make any sense to disqualify new firefighters for it,” he added.

The FDNY did not immediately respond.