In the late nineteenth century, dreams became the subject of scientific study for the first time, after thousands of years of being considered a primarily spiritual phenomenon. …