A lane-keeping method and system for a motor vehicle determines a transverse deviation and an misalignment angle of the motor vehicle relative to a target lane centerline, calculates a reference track for the motor vehicle to follow to return to the centerline using the transverse deviation and the misalignment angle, determines a reference yaw rate using a curvature of the reference track and a longitudinal speed of the vehicle, and compares the reference yaw rate with an actual yaw rate of the vehicle to determine a control deviation. A steering input is then applied to a steering system of the motor vehicle to minimize the control deviation.