Luis Fonsi conceived the initial melody and the title "Despacito" from an acoustic guitar, aiming for a fun Latin feel. He co-wrote the lyrics with Erika Ender, who helped develop the Puerto Rico-inspired lines, before bringing in Daddy Yankee to add an "urban injection" with his improvised reggaeton verse.