The early church had agape feasts wherein believers would gather together and share a meal. Many of them being poor, everyone would pool his resources and contribute to a big potluck dinner.
Jewish tradition held that there was a special connection with whomever one shared a meal. The Jews, therefore, were forbidden to eat with Gentiles. Thus, Peter broke tradition not only in eating the food of Gentiles, but in eating with Gentiles.
When the men from Jerusalem came, suddenly Peter distanced himself from the Gentile believers.