Based on the salp swarm algorithm (SSA), this paper proposes an efficient metaheuristic algorithm for solving global optimization problems and optimizing two commonly encountered geotechnical engineering structures: reinforced concrete cantilever retaining walls and shallow spread foundations. Two new equations for the leader- and followers-position-updating procedures were introduced in the proposed adaptive salp swarm optimization (ASSA). This change improved the algorithm’s exploration capabilities while preventing it from converging prematurely. Benchmark test functions were used to confirm the proposed algorithm’s performance, and the results were compared to the SSA and other effective optimization algorithms. A Wilcoxon’s rank sum test was performed to evaluate the pairwise statistical performances of the algorithms, and it indicated the significant superiority of the ASSA. The new algorithm can also be used to optimize low-cost retaining walls and foundations. In the analysis and design procedures, both geotechnical and structural limit states were used. Two case studies of retaining walls and spread foundations were solved using the proposed methodology. According to the simulation results, ASSA outperforms alternative models and demonstrates the ability to produce better optimal solutions.