From 1853 onwards, during Leighton's regular visits to Italy, the two friends made many excursions into the countryside to produce their sketches. In 1862 Costa was a guest of Leighton at his London home, a privilege that the Englishman rarely granted. The Italian painter travelled frequently to Great Britain, also became a friend of George Howard, an artist from an aristocratic family, and was one of the few foreigners to exhibit at the Royal Academy or the Grosvenor Gallery.
According to what the sitter himself told Mrs Russell Barrington, Leighton's first biographer, the portrait was painted in the autumn of 1878 during a stay by the two painters in Lerici, Liguria. The main aim was to experiment with a new technique, which required four sittings.