It’s the nearly Christmas, which means it’s time to hang Christmas stockings.

But where exactly does the holiday tradition come from? According to History.com, hanging stockings comes from a legend about Saint Nicholas. 

In that legend, Saint Nicholas gave three poor sisters gold coins and dropped the coins down the chimney. One of the coins went into a pair of shoes that were left on the hearth, while another coin went into a pair of socks that were hanging by the fire to dry, the website states.

CATS AND CHRISTMAS TREES: WHY PET EXPERTS SAY YOU SHOULDN'T SCARE FELINES AWAY

Because of that legend, on Christmas Eve, children in Scandinavia leave their shoes on the hearth, while children in the U.S. and the U.K. leave their stockings on their bedpost or near the fireplace in the hopes that the stockings and shoes will be filled with treats, History.com reported.

Christmas stockings hung

The tradition of hanging stockings reportedly comes from a legend about Saint Nicholas. (iStock)

CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER 

The tradition of hanging stockings in the U.S. was solidified with the 1823 publication of Clement Clarke Moore’s poem, "A Visit from St. Nicholas," also known as "The Night Before Christmas."

At the beginning of the famous poem, Moore writes that on Christmas Eve, "the stockings were hung by the chimney with care, in hopes that St. Nicholas soon would be there."

Patterned white Christmas stockings

Many Americans may fill Christmas stockings with small gifts and goodies for their loved ones. (iStock)

CLICK HERE TO GET THE FOX NEWS APP 

Near the end of the poem, Moore writes that during his visit, St. Nicholas "filled all the stockings."

Today, stockings are often filled with candy, treats and small toys