This motivated a "Board of Catholic Knights" to acquire the ownership of the field and give it to Saint John Bosco in 1886, when he was visiting Barcelona at the invitation of Dorotea de Chopitea, a great patron and promoter of the project.
From this arose the idea of a building dedicated to the Sacred Heart of Jesus, a dedication very popular at that time thanks to the impetus given by Pope Leo XIII, and following in line with the church built in Rome by Bosco himself (Sacro Cuore di Gesù a Castro Pretorio) and the famous Sacré-Cœur in Paris.
The dome is crowned with an image of the Sacred Heart; the original work was by Frederic Marès (destroyed in 1936) and replaced in 1950 with another by Josep Miret.
The façade of the crypt has a richly decorated tympanum with sculptures by Alfons Juyol i Bach following the design of Eusebi Arnau.
In 1955 it was redecorated by the Bru Workshop of Barcelona; the work depicts an allegory of the devotion of Spain, represented by its patron saints.
At the level of the choir include founding saints: Marcellin Champagnat and Jean-Baptiste de La Salle on both sides of the presbytery, and Anthony Mary Claret, Joseph Calasanctius, John Bosco and Maria Domenica Mazzarello next to the main facade.
The ascent from the crypt, passing through the church and ending at the sculpture, reflects the rise and the purification of the human condition by means of sacrifice and atonement.
From the crypt there is access to a chapel dedicated to the Perpetual Adoration, excavated into the mountain in the late 1940s, consisting of three naves divided by columns.