 This study investigated the use of recycled glass powder in cement mortar in an acidic environment. It was found that the addition of glass powder can reduce the compressive strength loss due to acid exposure. The optimal percentage of glass powder was determined to be 10 percent as cement and 15 percent as sand replacement, which limited the compressive strength loss to 5.54 percent and 4.48 respectively compared to the same mixed port in plain water. Additionally, two machine learning models were developed to predict the compressive strength of cement mortars containing glass powder after being exposed to acid. Both models showed high accuracy and were able to accurately predict the compressive strength of the cement mortar. This article was authored by Majdi Amin Alfead, Kafia Telekhan, Waka Zaman, and others.