The Illinois Department of Natural Resources said an undercover officer responded to the ad posted by Juan DeJesus, 19, and went to the man's home Monday while posing as a potential buyer, the Chicago Tribune reported Tuesday.
DeJesus brought the alligator out of his home and was arrested on a misdemeanor possession of wildlife charge, police said.
The alligator was seized by the officer.
DeJesus is due to appear in court May 31.
N.J. man wakes up from 10-hour sleep with knife in back
Exploding whale video goes viral on Internet