Civil Rights Policies. It begun with Truman's desegregation in the armed forces and went on to the liberal agenda of JFK and LBJ. Especially the latter's civil rights legislation. Democrats however remained relatively strong at the state level until the 1990s, when several prominent southern Democrats switched party. Reagan's conservatism gave the rest.
This is literally an explanation I'd expect in a sixth-grader's history textbook. Disgustingly simplistic. Democrats didn't just start championing themselves as being pro-civil rights after 1964, ya know...
Anyway, the post above yours is accurate. Even in Presidential elections, older Southerners were MUCH more Democratic than younger Southerners into the 2000s (when, ya know, those folks started to die, not switch parties).