He built an altar there and named the place after the God of Bethel, because God had revealed himself to him there when he was running away from his brother.