Democrats didn't create the klan, the klan was created by fanatically religious, pro-authoritarian, nationalists which 150 years ago were primarily southern Democrat which where then considered America's right wing faction compared to what at the time was the liberal Republican faction. In 1936 Franklin Roosevelt began regulating businesses, created social security and welfare and more as part of the New Deal to end the great depression resulting in the Democratic party slowly becoming liberal over the next decade while the Republican party became the right wing party, and thus since the party sharing their ideologies shifted the KKK followed becoming primarily republican.