Christmas is believed to have been first celebrated as a religious holiday in the fourth century AD, when the Roman emperor Constantine I officially recognized Christianity. The holiday gained popularity in the medieval period and was eventually established as a national holiday in many countries. In the United States, Christmas was officially declared a federal holiday in 1870, and has since become a beloved and cherished tradition for many families.