From 1661 on, the trios and dances he wrote for the court were promptly published. As early as 1653, Louis XIV made him director of his personal violin orchestra, known as the Petits Violons ("Little Violins"), which was proving to be open to Lully's innovations, as contrasted with the Twenty-Four Violins or Grands Violons ("Great Violins"), who only slowly were abandoning the polyphony and divisions of past decades. When he became surintendant de la musique de la chambre du roi in 1661, the Great Violins also came under Lully's control. He relied mainly on the Little Violins for court ballets.
Lully's collaboration with the playwright Molière began with Les Fâcheux [fr] in 1661, when Lully provided a single sung courante, added after the work's premiere at Nicolas Fouquet's sumptuous chateau of Vaux-le-Vicomte. Their collaboration began in earnest in 1664 with Le Mariage forcé. More collaborations followed, some of them conceived for fetes at the royal court, and others taking the form of incidental music (intermèdes) for plays performed at command performances at court and also in Molière's Parisian theater.
Intermèdes became part of a new genre, the comédie-ballet, in 1661, when Molière described them as "ornaments which have been mixed with the comedy" in his preface to Les Fâcheux [fr]. "Also, to avoid breaking the thread of the piece by these interludes, it was deemed advisable to weave the ballet in the best manner one could into the subject, and make but one thing of it and the play." The music for the premiere of Les Fâcheux was composed by Pierre Beauchamp, but Lully later provided a sung courante for act 1, scene 3. With Le Mariage forcé [fr] and La Princesse d'Élide [fr] (1664), intermèdes by Lully began to appear regularly in Molière's plays: for those performances there were six intermèdes, two at the beginning and two at the end, and one between each of the three acts. Lully's intermèdes reached their apogee in 1670–1671, with the elaborate incidental music he composed for Le Bourgeois gentilhomme and Psyché. After his break with Molière, Lully turned to opera; but he collaborated with Jean Racine for a fete at Sceaux in 1685, and with Campistron for an entertainment at Anet in 1686.