How did the Enlightenment contribute to the French Revolution?

How did the Enlightenment contribute to the French Revolution? Provide specific examples. John Locke said that no king should have absolute power. He believed in a constitutional monarchy, which basically means that he thought that any ruler should have rules to follow. He also believed in a social contract in which people give a little of their freedom to their ruler, but they cannot take away their natural rights, the rights that they are born with, and they have the right to get rid of higher if he/she is a bad ruler. The French liked these ideas.