Young Pacific salmon inherit a magnetic sense of direction that brings them to their ancestor’s breeding grounds without any prior experience of traveling there.