Hume explores the nature of political society and argues that there is some basic utility to the state.

David Hume was a Scottish philosopher, historian, economist, and essayist, known especially for his philosophical empiricism and skepticism. He is regarded as one of the most important figures in the history of Western philosophy and the Scottish Enlightenment.
Beginning with his A Treatise of Human Nature, Hume strove to create a total naturalistic "science of man" that examined the psychological basis of human nature. In stark opposition to the rationalists who preceded him, most notably Descartes, he concluded that desire rather than reason governed human behavior, saying: "Reason is, and ought only to be the slave of the passions."
A prominent figure in the skeptical philosophical tradition and a strong empiricist, he argued against the existence of innate ideas, concluding instead that humans have knowledge only of things they directly experience. Thus he divides perceptions between strong and lively "impressions" or direct sensations and fainter "ideas," which are copied from impressions. He developed the position that mental behavior is governed by "custom"; our use of induction, for example, is justified only by our idea of the "constant conjunction" of causes and effects. Without direct impressions of a metaphysical "self," he concluded that humans have no actual conception of the self, only of a bundle of sensations associated with the self. Hume advocated a compatibilist theory of free will that proved extremely influential on subsequent moral philosophy. He was also a sentimentalist who held that ethics are based on feelings rather than abstract moral principles.
Hume held notoriously ambiguous views of Christianity, but famously challenged the argument from design in his Dialogues Concerning Natural Religion.
Kant credited Hume with waking him up from his "dogmatic slumbers" and Hume has proved extremely influential on subsequent philosophy, especially on utilitarianism, logical positivism, William James, philosophy of science, early analytic philosophy, cognitive philosophy. Also famous as a prose stylist, Hume pioneered the essay as a literary genre and engaged with contemporary intellectual luminaries such as Jean-Jacques Rousseau, Adam Smith (who acknowledged Hume's influence on his economics and political philosophy), James Boswell, Joseph Butler, and Thomas Reid.

Had every man sufficient sagacity to perceive, at all times, the strong interest, which binds him to the observance of justice and equity, and strength of mind sufficient to persevere in a steady adherence to a general and a distant interest, in opposition to the allurements of present pleasure and advantage; there had never, in that case, been any such thing as government or political society, but each man, following his natural liberty, had lived in entire peace and harmony with all others. What need of positive law, where natural justice is, of itself, a sufficient restraint? Why create magistrates, where there never arises any disorder or iniquity? Why abridge our native freedom, when, in every instance, the utmost exertion of it is found innocent and beneficial? It is evident, that, if government were totally useless, it never could have place, and that the sole foundation of the duty of allegiance is the advantage, which procures to society, by preserving peace and order among mankind.

When a number of political societies are erected, and maintain a great intercourse together, a new set of rules are immediately discovered to be useful in that particular situation; and accordingly take place under the title of laws of nations. Of this kind are, the sacredness of the person of ambassadors, abstaining from poisoned arms, quarter in war, with others of that kind, which are plainly calculated for the advantage of states and kingdoms, in their intercourse with each other.

The rules of justice, such as prevail among individuals, are not entirely suspended among political societies. All princes pretend a regard to the rights of other princes; and some, no doubt, without hypocrisy. Alliances and treaties are every day made between independent states, which would only be so much waste of parchment, if they were not found, by experience, to have some influence and authority. But here is the difference between kingdoms and individuals. Human nature cannot, by any means, subsist, without the association of individuals; and that association never could have place, were no regard paid to the laws of equity and justice.

Disorder, confusion, the war of all against all, are the necessary consequences of such a licentious conduct. But nations can subsist without intercourse. They may even subsist, in some degree, under a general war. The observance of justice, though useful among them, is not guarded by so strong a necessity as among individuals; and the moral obligation holds proportion with the usefulness. All politicians will allow, and most philosophers, that reason of state may, in particular emergencies, dispense with the rules of justice, and invalidate any treaty or alliance, where the strict observance of it would be prejudicial, in a considerable degree, to either of the contracting parties. But nothing less than the most extreme necessity, it is confessed, can justify individuals in a breach of promise, or an invasion of the properties of others.

In a confederated commonwealth, such as the Achaean republic of old, or the Swiss Cantons and United Provinces in modern times; as the league has here a peculiar utility, the conditions of union have a peculiar sacredness and authority, and violation of them would be regarded as no less, or even as more criminal, than any private injury or injustice.

The long and helpless infancy of man requires the combination of parents for the subsistence of their young; and that combination requires the virtue of chastity or fidelity to the marriage bed. Without such a utility, it will readily be owned, that such a virtue would never have been thought of.

An infidelity of this nature is much more pernicious in women than in men. Hence the laws of chastity are much stricter over the one sex than over the other.

These rules have all a reference to generation; and yet women past child-​bearing are no more supposed to be exempted from them than those in the flower of their youth and beauty. General rules are often extended beyond the principle, whence they first arise; and this in all matters of taste and sentiment. It is a vulgar story at Paris, that, during the rage of the Mississippi, a hump-​backed fellow went every day into the Rue De Quincempoix, where the stock-​jobbers met in great crows, and was well paid for allowing them to make use of his hump as a desk, in order to sign their contracts upon it. Would the fortune, which he raised by this expedient, make him a handsome fellow; though it be confessed, that personal beauty arises very much from ideas of utility? The imagination is influenced by associations of ideas; which, though they arise at first from the judgment, are not easily altered by every particular exception that occurs to us. To which we may add, in the present case of chastity, that the example of the old would be pernicious to the young; and that women, continually foreseeing that a certain time would bring them the liberty of indulgence, would naturally advance that period, and think more lightly of this whole duty, so requisite to society.

Those who live in the same family have such frequent opportunities of license of this kind, that nothing could preserve purity of manners, were marriage allowed among the nearest relations, or any intercourse of love between them ratified by law and custom. Incest, therefore, being pernicious in a superior degree, has also a superior turpitude and moral deformity annexed to it.

What is the reason, why by the Athenian laws, one might marry a half-​sister by the father, but not by the mother? Plainly this: The manners of the Athenians were so reserved, that a man was never permitted to approach the women’s apartment, even in the same family, unless where he visited his own mother. His step-​mother and her children were as much shut up from him as the women of any other family, and there was as little danger of any criminal correspondence between them. Uncles and nieces, for a like reason, might marry at Athens; but neither these, nor half-​brothers and sisters, could contract that alliance at Tome, where the intercourse was more open between the sexes. Public utility is the cause of all these variations.

To repeat, to a man’s prejudice, any thing that escaped him in private conversation, or to make any such use of his private letters, is highly blamed. The free and social intercourse of minds must be extremely checked, where no such rules of fidelity are established.

Even in repeating stories, whence we can foresee in ill consequences to result, the giving of one’s author is regarded as a piece of indiscretion, if not of immorality. These stories, in passing from hand to hand, and receiving all the usual variations, frequently come about to the persons concerned, and produce animosities and quarrels among people, whose intentions are the most innocent and inoffensive.

To pry into secrets, to open or even read the letters of others, to play the spy upon their words and looks and actions; what habits more inconvenient in society? What habits, of consequence, more blameable?

This principle is also the foundation of most of the laws of good manners; a kind of lesser morality, calculated for the ease of company and conversation. Too much or too little ceremony are both blamed, and every thing, which promotes ease, without an indecent familiarity, is useful and laudable.

Constancy in friendships, attachments, and familiarities, is commendable, and is requisite to support trust and good correspondence in society. But in places of general, though casual concourse, where the pursuit of health and pleasure brings people promiscuously together, public conveniency has dispensed with this maxim; and custom there promotes an unreserved conversation for the time, by indulging the privilege of dropping afterwards every indifferent acquaintance, without breach of civility or good manners.

Even in societies, which are established on principles the most immoral, and the most destructive to the interests of the general society, there are required certain rules, which a species of false honour, as well as private interest, engages the members to observe. Robbers and pirates, it has often been remarked, could not maintain their pernicious confederacy, did they not establish a new distributive justice among themselves, and recall those laws of equity, which they have violated with the rest of mankind.

I hate a drinking companion, says the Greek proverb, who never forgets. The follies of the last debauch should be buried in eternal oblivion, in order to give full scope to the follies of the next.

Among nations, where an immoral gallantry, if covered with a thin veil of mystery, is some degree, authorized by custom, there immediately arise a set of rules, calculated for the conveniency of that attachment. The famous court of parliament of love in Provence formerly decided all difficult cases of this nature.

In societies for play, there are laws required for the conduct of the game; and these laws are different in each game. The foundation, I own, of such societies is frivolous; and the laws are, in great measure, though not altogether, capricious and arbitrary. So far is there a material difference between them and the rules of justice, fidelity, and loyalty. The general societies of men are absolutely requisite for the subsistence of the species; and the public conveniency, which regulates moral, in inviolably established in the nature of man, and of the world, in which he lives. The comparison, therefore, in these respects, is very imperfect. We may only learn from it the necessity of rules, wherever men have any inercourse with each other.

They cannot even pass each other on the road without rules.They cannot even pass each other on the road without rules. Waggoners, coachmen, and postilions have principles, by which they give the way; and these are chiefly founded on mutual ease and convenience. Sometimes also they are arbitrary, at least dependent on a kind of capricious analogy, like many reasonings of lawyers.

To carry the matter farther, we may observe, that it is impossible for men so much as to murder each other without statutes, and maxims, and an idea of justice and honour. War has its laws as well as peace; and even that sportive kind of war, carried on among wrestlers, boxers, cudgel-​players, gladiators, is regulated by fixed principles. Common interest and utility beget infallibly a standard of right and wrong among the parties concerned.