Why didn't the KKK get in trouble?

Back then, the Civil War happened because the South thought that slaves were OK. When the KKK started acting up, no one really got in trouble because some sheriffs and people in high places were also in the Ku Klux Klan.