The painting is probably a mature work of about 1740, but nothing is known about its origin. The subject is unusual, though not unique, in combining the themes of the Nativity and the Trinity.
A similar, though not identical, subject was treated by Murillo in his painting 'The Two Trinities' in the National Gallery.