Glad you asked. As defined by this historian, it's a town where minority citizens (most commonly, but not exclusively African Americans) have been systematically excluded from enjoying permanent often even over-night) residence.
Interestingly, he notes that Sundown Towns are generally a non-Southern phenomenon. Southern whites long ago became used to exploiting blacks for labor, and thus living in their proximity was no particularly big deal. In the wake of changing racial attitudes starting around 1890, interracial labor competition, and the migration of many blacks into the "white" north, many formerly all-white towns and whole counties enacted ordinances or instituted polices keeping out black americans, upon pain of harrassment, imprisonment, or sometimes even death. He identifies over 400 such places in the state of Illinois, for example. Where blacks lived in peace before the 1890s, they mysteriously disappeared in the following decades in what he terms the "Nadir". While American school kids are taught a white-washed history of ever (if slowly improving) race relations, the sad reality lies in the fact that the post civil war gains were largely reversed during this period, and we deal with the aftermath of these issues to this day.
These policies were actually initially deployed against Chinese migrant workers in the 1880s, and other groups over the years have also experienced the need to "get out of town before sundown"--Jews and Mexicans, most prominently. But African Americans from the late 19th Century up to today have born the overwhelming brunt of the problem.
There's little doubt that such attitudes have largely changed (in *most* cases) throughout much of the country, but the fact remains that those hate-twisted, youthful faces you see on PBS specials about the civil rights struggle are today's bank presidents, sheriffs, and mayors, and one can only stop and wonder how many of them planted, in their time, Sundown signs.

