July 4 became a federal holiday in the United States in 1870.
Congress passed the law on June 28, 1870, during President Ulysses S. Grant’s administration. The measure recognized Independence Day, New Year’s Day, Christmas Day, and Thanksgiving as legal holidays for federal employees in the District of Columbia. At the time, the law was primarily about government operations and employee leave, not about creating the modern nationwide holiday experience.
July 4 had been celebrated for decades before receiving federal legal recognition. Philadelphia marked the first anniversary in 1777 with a formal dinner, speeches, music, military displays, and fireworks. Observance expanded during the nineteenth century, and the holiday became especially prominent after the War of 1812.
A common mix-up is treating 1870 as the date America first celebrated Independence Day. It was instead the year Congress gave the date federal-holiday status. The law initially applied to federal workers in Washington, D.C.; later federal statutes established the broader holiday framework now covering federal employees throughout the country.