Least-squares regression lines are used to model the relationship between two variables by minimizing the sum of the squared differences between observed data points and predicted values. They provide an equation that represents the best-fit line through the data.