In 1893, while appearing in a Durban court, the magistrate ordered Gandhi to remove his turban as a sign of respect. Gandhi refused, arguing that removing his turban was against his religious and cultural customs. This early stand against racial discrimination in South Africa shaped his future approach to civil rights.