Wearing a dark suit, the legendary golfer arrived at the Palm Beach Gardens courtroom and appeared solemn as he faced the judge.

The 41-year-old was sentenced to 12 months probation stemming from the May arrest when cops found him barefoot and asleep at the wheel of his Mercedes on Jupiter Island in the early hours of Memorial Day.

Breathalyzer tests found that Woods had not been drinking, but a toxicology report showed a mixture of painkillers, anxiety and sleeping medication and THC — a compound of marijuana — were in his system.

"I understand the severity of what I did and I take full responsibility for my actions," Woods said in a statement following his arrest.