and
Daniel Lanois produced the album, their second time working with U2.|alt=Headshots of Brian Eno and Daniel Lanois. Based on their success with producers
Brian Eno and
Daniel Lanois on
The Unforgettable Fire, U2 wanted the duo to produce their new album. Mullen was excited about working with them again, as he felt the pair, Lanois in particular, were the band's first producers who "really [took] an interest in the rhythm section". The Edge had viewed the residence months prior while househunting with his wife and convinced the owner to rent it to the band. the group first adopted this approach while making
The Unforgettable Fire. To support the setup of all band members recording in a room together, Lanois eschewed having them wear headphones in favour of using
monitor speakers due to their power; Mullen and U2's bassist
Adam Clayton used two each. To aid in sound isolation,
gobos were built in the drawing room, although the production staff still faced issues with
audio spill from the monitor speakers. Lanois said that due to the setup, "you have to make a commitment to what you put down and either use it or throw it all away." This recording setup was duplicated at subsequent locations during the album sessions. They began with their usual songwriting methods of sorting through tapes from
soundcheck jams, working through Bono's lyric book, and recording
jam sessions. The group were first joined at Danesmoate by Eno, with Flood and fellow engineer
Dave Meegan recording their jams. Meegan said of Eno's involvement: "Usually he was in first every morning and he'd start some dodgy sequence on his
DX-7 [synthesiser]—it would be just like a cello line with no intentions of ever staying forever, just something to inspire people when they walked into the room." One of the first songs worked on was "Heartland", which originated during
The Unforgettable Fire sessions and was later released on the band's 1988 album,
Rattle and Hum. The producers encouraged an interest in older songs, especially American roots music. More contemporary references included the textural guitar work of
the Smiths and
My Bloody Valentine. The band's musical vocabulary had improved after their previous album, facilitating communication and collaboration with the production team. Lanois had a higher opinion of the house, saying: "It was loud, but it was really good loud, real dense, very musical. In my opinion it was the most rock and roll room of the lot." According to him, "the Danesmoate sessions were the backbone of the tonality of the record—we got a lot of the drums done in there." He thought that the house sounded better than Slane Castle, and he was particularly impressed with the drawing room's "low mid-range ... where the music lives", a property that he believes was a major factor in the success of
The Joshua Tree. Intended to help alleviate Ireland's unemployment crisis by raising funds and job pledges, the event was harshly criticised in the media for taking pressure off the Irish government to resist
Margaret Thatcher's economic policies. The band in particular were labelled hypocrites for their participation. Their appearance included a cover of Bob Dylan's "
Maggie's Farm", reinterpreted as a criticism of Thatcher. Rather than distract the band, the tour invigourated their new music and provided extra focus on what they wanted to say. For Clayton, the tour validated the "rawness of content" and their attempts to capture the "bleakness and greed of America under
Ronald Reagan". Meegan believed that U2's time with the other artists on the tour affected their own sound: "Their musical heroes were bleeding into the music and they weren't embarrassed by it, which gave them a lot of space to work in." After the funeral, Bono and his wife visited
Nicaragua and
El Salvador, where they saw firsthand the distress of peasants affected by political conflicts and US military intervention, experiences which formed the basis of the lyrics for "Bullet the Blue Sky" and "
Mothers of the Disappeared". On 1 August 1986, U2 regrouped in Dublin to resume work on the album and begin the recording stage proper. "Mothers of the Disappeared" and "Bullet the Blue Sky" were among the songs that evolved at Melbeach. Lanois said that most of the record was done there, Writing and recording alternated between the two houses and
Windmill Lane Studios. During takes, Lanois used a pointer and a chalkboard to help walk the band through the song's changes. Lanois said the production team extensively screened Bono's lyrics and offered suggestions, as many lines did not sound as good when sang against a backing track as they did when written down. The Edge said: "There would have been two records, depending on which songs we decided to finish. There was this one album, the 'blues' album that Bono was talking about, and another, much more 'European', which is kind of the way I was led." Rough mixes had been created throughout the sessions after each song was recorded to, in Lanois' words, take "snapshots along the way ... because sometimes you go too far". His eleventh-hour presence and changes caused discontent among the production crew, including Eno and Lanois. Lillywhite mixed four songs with engineer Mark Wallis on an
SSL desk at Windmill Lane Studios. As they worked at Melbeach, Around 2am, just seven hours before the album was due to Island for
mastering, the Edge tried to convince Lillywhite to allow him to add backing vocals to "Where the Streets Have No Name", but he was denied. In the morning, Meegan and Lillywhite flew with the album's tapes to
Island's offices in
Hammersmith, London. These tracks, which included "Walk to the Water", "Luminous Times (Hold on to Love)", and "Spanish Eyes", were completed as B-sides for the planned singles. They later expressed regret that it had not been completed for
The Joshua Tree. The track was re-recorded as a single for the group's 1998 compilation
The Best of 1980–1990. U2 agreed that one track, "Birdland", was too strong for a B-side and they withheld it for a future album release. After completing
The Joshua Tree, Bono said that he was "as pleased with the record as I can ever be pleased with a record", calling
The Joshua Tree their most complete album since their debut. ==Composition==