The 35-year-old rapper, born Cordozar Calvin Broadus Jr., agreed to five years' probation and 800 hours of community service. He faced charges of gun possession by a felon and sale or transportation of marijuana.
He said little other than "no contest" when the charges were read.
Snoop Dogg's recent arrests marked the end of a relatively long trouble-free stretch for the rapper. He has burnished his image in recent years with appearances in mainstream movies and by starting a youth football league.
He was arrested at Bob Hope Airport in Burbank Oct. 26 on suspicion of transporting marijuana. Police later found a gun at his home. If convicted at trial he could have faced up to four years in prison.
Los Angeles County Superior Court Judge Terry Smerling placed conditions on the probation, including that only 400 hours of the community service could involve the youth football league.
The judge also ruled that Snoop Dogg could not have any gang members in his entourage and must notify the probation department before leaving the state. The rapper must also provide authorities a DNA sample and he must have a medical permit if he uses marijuana.
The rapper caused a sensation when he arrived in a fur-collared black leather jacket, T-shirt and sequined jeans. Teenagers screeched when the music star strutted down a hallway to the courtroom. Court security ordered them to stop taking pictures.
Defense attorney Donald Etra said outside court that Snoop Dogg smokes marijuana because he has migraines and has a medical permit under state law. Etra also said Snoop Dogg's security staff and drivers are all currently licensed by the state and they and his entourage do not include gang members.
"Snoop's position is he wants to give children and teenagers an example to follow," Etra said of the football league.
Etra said that Snoop Dogg "recognizes he got a great deal" given his prior convictions.