In 1915 he wrote "El amor brujo". It was a work with dances, songs and spoken passages. He soon turned it into a ballet. The music uses the songs of Andalusia and the rhythms of Spanish folkmusic. He wrote a work for solo piano and orchestra called "Noches en los jardines de España" ("Nights in the gardens of Spain"). Later he changed it to a ballet for Diaghilev, calling it "El sombrero". It was performed in London in 1919 with designs by Picasso. The music is very lively and often sounds like a guitar. He wrote a piano piece called "Fantasia bética" (1919) which is the most important Spanish piano work after Albéniz’s "Iberia".