Waldorf is an unincorporated community and census-designated place in Charles County, Maryland. It is 23 miles (37 km) south-southeast of Washington, D.C. The population of the census-designated area only (excluding St. Charles) was 22,311 at the 2000 census. Waldorf was settled before 1900 as a rural crossroads with a train station and was called "Beantown" after a local family. Waldorf is now largely subsumed by the large planned community of St. Charles. Waldorf is either named after the town of Walldorf, Germany, or has a similar derivation: that is, either a German word meaning "forest village," or named after the Waldenses, a 12th Century religious sect. Once a tobacco market village, it came to prominence in the 1950s as a gambling destination after slot machines were legalized in Charles County in 1949. The boom lasted until 1968 when gambling was once again outlawed. Its subsequent substantial growth as a residential community began with a 1970 loan package from the Department of Housing and Urban Development which fueled the giant planned community of St. Charles, south of Waldorf. Waldorf is predominantly a bedroom community for many residents who commute to work at other points in the Washington, D.C. , metropolitan area, especially personnel at Andrews Air Force Base. Waldorf's local jobs are primarily in the service and sales industry. Nearby St. Charles Towne Center, a 2-story shopping mall, opened in 1988 and was remodeled in 2007. St. Charles Towne Center draws shoppers and diners from several Maryland counties, parts of Washington, D.C. , and Virginia, causing Charles County to be promoted as the "shopping capital of Southern Maryland. " U.S. Route 301, the main highway through the town, boasts the "Waldorf Motor Mile," with car dealerships located primarily along the northbound side. In 2005, Waldorf opened its third public high school, which has advanced science/technology programs; the Capital Clubhouse 24-hour indoor sports complex and ice rink also opened that year. Waldorf has a branch of the College of Southern Maryland. In 2006, plans were announced to build two more shopping centers, including one with high-end stores and an attractive "lifestyle" town center design layout. Ground was also broken to build an office park with mid-rise office buildings near Western Parkway and Route 228; a hotel there will open in 2010, and another new hotel has opened across the road.