Why did the Gentiles walk in vanity? Obviously because in performing such acts their reason is not guided by an enlightened understanding, but an erroneous one. This is what he says about them having their understanding darkened. "Their foolish heart was darkened" (Rom. 1:21), and "they have not known nor understood: they walk on in darkness" (Ps. 81:5). This is traceable to their not sharing in the divine light, or not being enlightened and directed by the divine law. Thus he adds alienated from the life of God, from God who is the life of the soul. "I am the way, and the truth, and the life"... (Jn. 14:6).
Or, from the life of God may mean from charity and spiritual grace by which the soul lives formally a supernatural life. "The grace of God is life everlasting" (Rom. 6:23). Existing without an expectation of eternal life, they held for a mortality of the soul contrary to faith and hope. "And they knew not the secrets of God, nor hoped for the wages of justice, nor esteemed the honour of holy souls" (Wis. 2:22). Or again, from the life of God might indicate an existence estranged from that holy living which comes through faith: "I live, now not I; but Christ liveth in me" (Gal. 2:20). "The just man liveth by faith" (Rom. 1:17). Or, the life which comes through charity: "We know that we have passed from death to life, because we love the brethren" (1 Jn. 3:14). The pagans were not like this; instead, they were alienated.
He briefly discusses the quality of this alienation, it is through the ignorance that is in them, not of stars or the movement of the constellations, but of the Divine Nature. "Some have not the knowledge of God" (1 Cor. 15:34), since in former times God was known only among the Jews. But "God, indeed having winked at the times of this ignorance, now declareth unto men that all should everywhere do penance" (Ac. 17:30). God, insofar as he himself was concerned, was not the cause of this ignorance since "That which is known of God is manifest in them. For God hath manifested it unto them" (Rom. 1:19). Certainly the cause was themselves due to the blindness of their hearts. He describes it well as blindness since from created reality they could not attain to a knowledge of the Creator. "For their own malice blinded them. And they knew not the secrets of God, nor hoped for the wages of justice" (Wis. 2:21-22).
Source: Commentary on Ephesians