What was the purpose of the civil rights movement?

The purpose of the Civil Rights Movement was to end racial segregation and for African-Americans to get the same treatment under the law as other US citizens.