Peter had previously agreed with Paul that salvation was by grace alone. But when Peter went to visit the mostly Gentile church in Antioch and Jews came up from Jerusalem, he separated himself from the Gentiles and ate with the Jews. Paul called out his hypocrisy. It was an essential turning point for the church. If Paul had not confronted Peter, we would have a very different church trying to obey the laws of Moses.