When Malcolm X made his pilgrimage to Mecca, he came back a different man, really. Going to Mecca totally changed his outlook, most particularly with respect to race.
The Nation of Islam had a very different set of views on race than did mainstream Muslims. The Nation was really quite racist, saying that whites were the devil, for example.
When Malcolm X went to Mecca, he saw how there were Muslims from all different races. He saw how they were all brothers and sisters in their devotion to their religion. This made him really moderate his views on white people between the pilgrimage and his death.