The basis of classical ballet was formed in the Court of Louis XIV in France, in the 17th century. Even his title (the 'Sun King') came from a role he danced in a ballet. Louis founded the first ballet company, the Ballet de l'Opera de Paris. Many of the ballets presented at his court were created by the composer Jean-Baptiste Lully and the choreographer Pierre Beauchamp. Also during this time, the playwright Molière invented the comedie-ballet.