Gibson did not appear but entered the plea through his attorney before Superior Court Judge Lawrence Mira, Deputy District Attorney Gina Satriano said in a statement.
Two counts in the original three-count complaint were dismissed, and Gibson volunteered to do public service announcements on the hazards of drinking and driving, and to immediately enter rehabilitation, Satriano said.
The arraignment was originally scheduled for Sept. 28 but was moved up at the request of Gibson's attorney.
Gibson was stopped around 2:30 a.m. on July 28 while driving on Pacific Coast Highway in Malibu and made anti-Semitic remarks to the arresting deputy, plunging Gibson into a scandal that forced him to later apologize for what he called "belligerent behavior" and "despicable" remarks.
Gibson was charged with misdemeanor driving under the influence of alcohol, driving while having a 0.08 percent or higher blood-alcohol level, and the infraction of possessing an open container of alcohol while driving.
The first and third counts were dismissed in the deal.
"This was an appropriate outcome which addresses all the public safety concerns of drinking and driving," Satriano said in a statement.
The judge ordered Gibson to attend Alcoholics Anonymous meetings five times a week for 4½ months and three AA meetings per week for another 7½ months.
The district attorney's office also said he was ordered to enroll in an alcohol abuse program for three months, fined a total of $1,300 and had his license restricted for 90 days.