Why was Nelson Mandela Put in Jail?

Nelson Mandela was put in jail for trying to to fight for his rights and to stop violence between white and black people. He was trying to stop racism.