孤魂 most often appears in the set phrase
孤魂野鬼 ("lonely souls and wild ghosts") — souls of the dead with no descendants to worship them, who wander unsettled. Central to
中元节 (the Ghost Festival) traditions of burning offerings for these unattached spirits.