29 But God has likewise destined man for civil society according to the dictates of his very nature. In the plan of the Creator, society is a natural means which man can and must use to reach his destined end. Society is for man and not vice versa. This must not be understood in the sense of liberalistic individualism, which subordinates society to the selfish use of the individual; but only in the sense that by means of an organic union with society and by mutual collaboration the attainment of earthly happiness is placed within the reach of all. In a further sense, it is society which affords the opportunities for the development of all the individual and social gifts bestowed on human nature. These natural gifts have a value surpassing the immediate interests of the moment, for in society they reflect the divine perfection, which would not be true were man to live alone. But on final analysis, even in this latter function, society is made for man, that he may recognize this reflection of God's perfection, and refer it in praise and adoration to the Creator. Only man, the human person, and not society in any form is endowed with reason and a morally free will.
Source: Divini Redemptoris (Vatican.va)