A burglar smashed the window of a home and stole an Atlantic City family’s Christmas presents as well as other valuables, but was arrested days later after selling some of the items at a local pawn shop, authorities said.

Rodney Williams, 48, tossed an object through the window of a house on the 100 block of North Virginia Avenue sometime before 6 p.m. on Dec. 10, entered the home and filled a bag with loot before leaving, Atlantic City police said in a statement Friday.

Williams, of Atlantic City, swiped $20,000 in Christmas presents, electronics, jewelry, money from a piggy bank and other personal items, officials said.

Investigators checked a local pawn shop, recovered some of the items he unloaded there and were able to learn Williams’ identity.

Eight days later - with an arrest warrant in hand - two detectives spotted Williams trying to open the door of a home in the area of Connecticut and Arctic Avenues.

He was arrested and charged with burglary, theft, criminal mischief and contempt of court. Williams was then sent to the Atlantic County jail.

Jeff Goldman may be reached at jeff_goldman@njadvancemedia.com. Follow him on Twitter @JeffSGoldman. Find NJ.com on Facebook. Have a tip? Tell us. nj.com/tips.

Get the latest updates right in your inbox. Subscribe to NJ.com’s newsletters.