The Carolingian dynasty ruled France until 987, when Hugh Capet became King of France. His descendants, the Direct Capetians, the House of Valois and the House of Bourbon, unified the country with many wars and dynastic inheritance. The monarchy was the most powerful during the 17th century and the reign of Louis XIV of France. At that time, France had the largest population in Europe. The country had a big influence over European politics, economy, and culture. French became the common language of diplomacy in international affairs. Much of the Enlightenment happened in France. French scientists made big scientific discoveries in the 18th century. France also conquered many overseas possessions in the Americas and Asia.