Method for the metallic joining of profiled rails in the longitudinal direction. Method includes heating rail ends to a joining temperature by pressing together faces of the rails end while simultaneously moving them relative to one another in an oscillating manner with a greatest oscillation amplitude relative to one another perpendicular to the main axis direction Y with the maximum moment of inertia of the cross-sectional surface, aligning the rail ends, and pressing the faces together to join the rails together.