Actor Mel Gibson was sentenced to three years probation, a year-long domestic violence counseling program, community service and a slew of fines in the battery case involving his ex-girlfriend Oksana Grigorieva.

The community service he will complete will be for Mending Kids International. Gibson's soon-to-be ex-wife Robyn Gibson is on the organization's board of directors.

The 55-year-old actor pleaded no contest to one misdemeanor count of domestic violence that allegedly occurred in January 2010.

Grigorieva alleges Gibson punched her in the head multiple times at the actor's Malibu home. Gibson admitted to slapping her in order to restrain her from shaking their baby, while the couple was fighting.

During his court appearance, it was revealed that Gibson is undergoing psychological counseling as part of the plea deal reached with prosecutors. The judge also told Gibson not to threaten or harass anyone involved in the case.

Blair Berk, Gibson's attorney, told Judge Stephanie Sautner that by pleading no contest, Gibson may maintain his innocence and does so now. He's entering his plea because it's in the best interest of his children.

Gibson made no statements other than to acknowledge his plea to the judge and say that he understood the proceedings.

Grigorieva's attorney released a statement saying that the Russian musician will now concentrate on co-parenting Lucia, resuming her charitable work for the children of Chernobyl and moving forward with her life.