Gandhi viewed caste as a social evil to be reformed, not inherently oppressive if practiced without hierarchy, and aimed to eradicate untouchability.