KLEINFELD, Senior Circuit Judge:
Reyes is a citizen of Mexico. He first entered the United States without inspection in 1988. Reyes was convicted of driving under the influence in 2003. In the same year, he was detained by immigration officials, but was granted voluntary departure. Reyes pleaded nolo contendere, and was found guilty, of being "under the influence of a controlled substance, methamphetamine," in violation of California Health and Safety Code § 11550(a) in 2008. The judgment in that case suspended imposition of sentence and Reyes was placed on "formal probation for a period of 36 months." During his three years of probation, he was subject to these limitations on his liberty, among others:
• "Submit person and property to a search at any time of the day or night by any law enforcement officer or probation
• "Submit to periodic anti-narcotic tests/alcohol tests as directed by the probation officer and treatment provider."
• "Register as a convicted narcotics offender, carry proof of registration at all times, display registration to any law enforcement officer upon request."
• "[Do] not associate with persons believed to be or known to be narcotic or drug users, sellers or buyers, except in an authorized drug counseling program."
• "Do not own, use or possess any dangerous or deadly weapons, including any firearms, knives or other weapons."
• "Do not drink or possess any alcoholic beverage and stay out of places where they are the chief item of sale."
He was also fined $289.38, including $100 in restitution.
Upon successful completion of his three years of probation, the California Superior Court set aside Reyes's nolo contendere plea, dismissed the criminal case against him, and terminated his probation.
In 2014, Reyes was charged with being removable from the United States by the Department of Homeland Security. The basis for removing him was that he had no right to be in the United States at all, having entered without inspection and having not been admitted or paroled into the United States.
What led to the case before us is that Reyes applied for adjustment of status as a lawfully admitted immigrant based on his marriage to a U.S. citizen, and sought cancellation of removal.
States have varying procedures for letting people with relatively minor convictions start over with a clean slate, if they can stay out of trouble long enough. California allows those convicted of nonviolent drug-possession offenses to have "the conviction on which the probation was based [to] be set aside" if they successfully "complet[e] drug treatment, and substantially compl[y] with the conditions of probation."
Immigration law provides that, although the slate may be clean for various state purposes, that is not necessarily so for purposes of removal of an illegal alien, such as Reyes.
In our en banc decision in Nunez-Reyes v. Holder, 646 F.3d 684, 690 (9th Cir. 2011), we overruled Lujan-Armendariz v. INS, 222 F.3d 728 (9th Cir. 2000), which had held that expungement of a state conviction for simple possession had to be treated the same way as expungement of a federal conviction for simple possession under the Federal First Offender Act. In Nunez-Reyes, we held the Equal Protection Clause did not require treating expunged state convictions the same as federal drug convictions expunged under the Federal First Offender Act.
Under § 1101(a)(48), if there has been a "formal judgment of guilt of the alien entered by a court," the alien has been convicted of a crime, even if the alien suffers no punishment. When there is no formal judgment of guilt, an alien may be still considered convicted of a relevant state crime, if two conditions in the statute are met. The first condition is that a relevant fact finder found the alien guilty, or that the "alien has entered a plea of guilty or nolo contendere or has admitted sufficient facts to warrant a finding of guilt."
We now decide what we assumed without deciding in Nunez-Reyes. California treats defendants who are in a similar position to Reyes as though "both the arrest and the conviction ... never ... occurred," for most purposes.
Retuta, though, is distinguishable. In Retuta, the alien was sentenced only to a fine of $100, which was stayed and did not have to be paid.
The California Superior Court in Reyes's case did indeed order "some form of punishment, penalty, or restraint on the alien's liberty," unlike the state judge in Retuta. Reyes was fined $289.38. Unlike the alien in Retuta, Reyes's fine was not suspended. If he did not pay it, his probation could be revoked. During his probation, he suffered multiple restraints on his liberty. He had to attend Alcoholics Anonymous meetings daily and keep his probation officer advised of where he lived. He was not allowed to own firearms, and he was not allowed to associate with drug users or be where they congregate. Those of us who have not been convicted of a crime are not required to attend Alcoholics Anonymous meetings or keep some probation office advised of our address, we may own firearms if we choose, and we can go to a restaurant even if we know that servers or other customers may be drug users.
Though the word "probation" may not necessarily prove a restraint on liberty, here it clearly did. A sentence of probation, even with no incarceration, satisfies the requirements of § 1101(a)(48)(A) so long as "the judge has ordered some form of punishment, penalty, or restraint on the alien's liberty to be imposed." In this case both the fine and the limitations on Reyes's freedom to associate with whom he likes, own guns, and so forth, all satisfied this definition.
Thus we conclude that a state conviction expunged under state law is still a conviction for purposes of eligibility for cancellation of removal and adjustment of status. And even though incarceration is not required, the federal definition of conviction is satisfied regardless of the rehabilitative purpose of probation, where the alien was punished or his liberty was restrained by the terms of his probation. Because Reyes