Democracy has its origins in ancient Greece, where in the 5th century BC people could meet in the city-states to make laws and vote in assemblies. However, only free men could participate, not women or slaves. During the Middle Ages in Europe, feudal systems developed where nobles offered protection to peasants in exchange for work and military service. Merchants in cities like Venice and Florence participated more in decision making through guilds. The Magna Carta in 1215 established that laws outranked kings in England. The American and French Revolutions in the late 1700s further spread democratic ideals of equal rights and representation. New Zealand became the first country to grant all adults the right to vote in 1893.