The Capetian Miracle (French: Miracle capétien) refers to the dynasty's ability to attain and hold onto the French crown. In 987, Hugh Capet was elected to succeed Louis V of the Carolingian dynasty that had ruled France for over three centuries.