In Greek mythology, nostos refers to the return or homecoming of a hero. Similarly, the term 'nostalgia' derives from the Greek words nostos (return) and algos (pain). So, both words are acquired from the same meaning — nostos (return). This is how they are both related to mythology.