The nineteenth century also saw the development of socialist theory, which held that the primary task of the state was to ensure the economic and social well-being of the community through government intervention and regulation.