A lawsuit involving the Highway 501 realignment project in Myrtle Beach was settled just before it was set to go to trial.