Swift's songwriting drifted towards escapism and romanticism for Folklore. She enlisted two producers to achieve her desired sound—her longtime collaborator, Jack Antonoff, who worked with her on 1989 (2014), Reputation, and Lover, and first-time collaborator Aaron Dessner, guitarist of the American indie rock band the National. Due to COVID-19 concerns, Swift, Antonoff, and Dessner quarantined remotely, separate from each other, creating Folklore by continually exchanging digital files of instrumentals and vocals. The album ensued from a DIY process, mixed and engineered by personnel scattered across the US.
Swift had previously met the National on a Saturday Night Live episode in 2014, and attended one of their concerts in 2019, where she talked to Dessner and his twin brother Bryce. She asked Aaron Dessner about his songwriting technique, because it is her "favorite thing to ask people who I'm a fan of", and he replied his band members live in different parts of the world, and that he would make instrumental tracks and send them to the lead singer, Matt Berninger, who would write the lyrics—this ignited Swift's idea to create music in quarantine.
Due to the pandemic, all recording studios were closed, so Swift built a home studio at her Los Angeles residence, named Kitty Committee, with help from engineer Laura Sisk. Antonoff, with whom Swift worked on five songs from the album, operated from New York City while Sisk recorded Swift's vocals in Los Angeles. "My Tears Ricochet" was the first song written for Folklore. Swift wrote it about her ties with Scott Borchetta, founder of her old record label, coming to an abrupt end. Antonoff compared the writing process of "Mirrorball" and "August" to that of "Out of the Woods" (2014). Swift wrote "Mirrorball" following the cancellation of Lover Fest, as an ode to fans who find solace in her music and concerts. She wrote "August" about a fictitious mistress, and "This Is Me Trying" based on multiple narratives, such as dealing with addiction, and her own mental health in 2016 and 2017 when she felt she was "worth absolutely nothing."
In late April, Swift approached Dessner to co-write some songs remotely. He worked on eleven of the album's 16 tracks over the next few months. Dessner "thought it would take a while for song ideas to come" and "had no expectations as far as what we could accomplish remotely", but was surprised that "a few hours after sharing music, my phone lit up with a voice memo from Taylor of a fully written song—the momentum never really stopped." Swift and Dessner "were pretty much in touch daily for three or four months by text and phone calls." He would mail her folders of instrumentals, and she would write the "entire top line"—melody and lyrics, and "he wouldn't know what the song would be about, what it was going to be called, where [she] was going to put the chorus." The first song the duo wrote was "Cardigan", which is based on one of Dessner's sketches called "Maple". "Cardigan" was followed by "Seven" and "Peace". Upon hearing the composition of "Peace", Swift felt an "immediate sense of serenity" that roused the feeling of being peaceful, but felt it would be "too on-the-nose" to sing about finding peace; she instead wrote about complex "conflicted" feelings contrasting the track's calming sound, and recorded it in one vocal take.A few weeks later, when Swift and Dessner had written "six or seven" songs, she explained him her concept of Folklore. She told him about the work she had done earlier with Antonoff, concluding that both of her works resonate as an album. Swift and Dessner also wrote "The Last Great American Dynasty", "Mad Woman", and "Epiphany", the first of which has an array of electric guitars inspired by Radiohead's 2007 surprise album In Rainbows. The lyrics document the American socialite Rebekah Harkness, whom Swift had been wanting to write about ever since she bought the Holiday House in 2013. Dessner composed the piano melody for …