Civic nationalism is the form of nationalism in which the state derives political legitimacy from the active participation of its citizenry, from the degree to which it represents the "will of the people". It is often seen as originating with Jean-Jacques Rousseau and especially the social contract theories which take their name from his 1762 book The Social Contract. Civic nationalism lies within the traditions of rationalism and liberalism, but as a form of nationalism it is contrasted with ethnic nationalism.