A 23-year-old New York City man is accused of posting an ad on Craigslist offering to sell a 2-month-old baby for $100.

The Staten Island district attorney's office said Paul Marquez, of Staten Island, admitted posting the ad twice last week, using photos of the baby and the phone number for the child's mother.

Marquez is charged with harassment and endangering the welfare of a child, both misdemeanor charges.

Prosecutors say he told them that he posted the ad to get back at the baby's mother, a 19-year-old woman he had been dating.

He is being held on $1,000 bail. He was listed as having a lawyer with Legal Aid, which does not comment.