I coined the word ‘eucatastrophe’: the sudden happy turn in a story which pierces you with a joy that brings tears (which I argued it is the highest function of fairy-stories to produce). And I was there led to the view that it produces its peculiar effect because it is a sudden glimpse of Truth

— J.R.R. Tolkien

More at Tolkien Gateway