Then when he says, "For, before that some came from James," he manifests what he has said.
First, that he said he was to be blamed;
Secondly, that he rebuked Peter (v. 14).
As to the first he does three things:
First, he shows what Peter's opinion was;
Secondly, what he did (v. 11);
Thirdly, what resulted from it (v. 13).
He says therefore, as to the first point, that Peter felt that legalism ought not be observed. This he showed by the fact that "before some came," namely, Jews zealous for the Law, "from James," Bishop of the Church at Jerusalem, "he did eat," namely, Peter did, "with ...the Gentiles," i.e., without compunction he ate the food of Gentiles. He did this through the inspiration of the Holy Spirit Who had said to him: "That which God hath cleansed, do not thou call common," as is had in Acts (10:15), and as he himself in the following chapter said in answer to the Jews who rose up against him, because he had eaten with the uncircumcised.
What Peter did Paul now shows, saying that when he was with the Jews, "he withdrew" from the company of the faithful who had been converted from the Gentiles and adhered to the Jews alone and mingled among them. Therefore he says, "but when they were come," namely, from Judea, Peter "withdrew" from the converted Gentiles "and separated himself from them." This he did because he was "fearing them who were of the circumcision," i.e., the Jews, not with a human or worldly fear but a fear inspired by charity, namely, lest they be scandalized, as is said in a Gloss. Hence he became to the Jews as a Jew, pretending that he felt the same as they did in their weakness. Yet he feared unreasonably, because the truth must never be set aside through fear of scandal.
Source: Commentary on Galatians