The relation between Locke's political views and his view of happiness should be pretty clear from what has been said. Since God has given each person the desire to pursue happiness as a law of nature, the government should not try to interfere with an individual's pursuit of happiness. Thus we have to give each person liberty: the freedom to live as he pleases, the freedom to experience his or her own kind of happiness so long as that freedom is compatible with the freedom of others to do likewise. Thus we derive the basic right of liberty from the right to pursue happiness. Even though Locke believed the path of virtue to be the “best bet” towards everlasting happiness, the government should not prescribe any particular path to happiness. First of all, it is impossible to compel virtue since it must be freely chosen by the individual. Furthermore, history has shown that attempts to impose happiness upon the people invariably result in profound unhappiness. Locke's viewpoint here is prophetic when we look at the failure of 20 th Century attempts to achieve utopia, whether through Fascism, Communism, or Nationalism.
These, when we have taken a full survey of them, and their several modes, combinations, and relations, we shall find to contain all our whole stock of ideas, and that we have nothing in our mind which did not come in one of these two ways. Let anyone examine his own thoughts; and thoroughly search into his understanding, and then let him tell me, whether all the original ideas he has there, are any other than of the objects of his senses, or of the operations of his mind considered as objects of his reflection; and how great a mass of knowledge soever he imagines to be lodged there, he will, upon taking a strict view see that he has not any idea in his mind but what one of these two have imprinted, though perhaps with infinite variety compounded and enlarged by the understanding, as we shall see hereafter.