Tamping improves track geometry but cannot directly correct gauge, which limits alignment improvement in sections with poor gauge conditions. Using large-scale field measurements from multiple railway lines, this study identifies a positive correlation between gauge and alignment irregularities and reveals the limiting effect of gauge deviation on alignment correction. A gauge TQI below 0.5 is therefore recommended. A coordinated gauge–alignment control algorithm is then developed, treating left- and right-rail adjustments as coupled variables. The algorithm incorporates post-adjustment gauge, rail alignment, adjacent-point geometry into a multi-constraint optimization framework. The adjustment strategy is determined according to the gauge correction direction and the deterioration degree of alignment. In this way, automatic optimization of track adjustments can be achieved. Engineering application shows that the proposed method reduces computation time to 1/500 of that required by traditional calculation, decreases gauge TQI by 66.5%, and reduces both left- and right-rail alignment TQI by more than 20%.