An elf on the shelf typically leaves on Christmas Eve, once all the children have fallen asleep and the presents are all wrapped and under the tree. This allows the elf to report back to Santa with a list of who has been naughty or nice and ensure that every child receives their gifts.