In the construction industry, cement is the most widely used material. So, to achieve greater sustainability in this industry, it is imperative to improve the sustainability of this material. One way to reduce the ecological footprint of cement is to replace it, even if partially, with other more sustainable materials that can act as binders. This paper analyses the mechanical properties of more sustainable mortars containing recycled cement (RC), fly ash (FA), and magnesium oxide (MgO). Different types of binary, ternary, and quaternary mortars were used: containing recycled cement (5% and 10%), fly ash (10% and 20%), and MgO (7.5% and 15%). An experimental campaign was carried out analysing air content, density, compressive and flexural strengths, modulus of elasticity, and ultrasonic pulse velocity. The ternary mortars showed decreases between 0.4% (M-5RC10FA) and 35.3% (M-10RC15Mg) in terms of compressive strength at 365 days (compared to RM), when the theoretically expected decrease (the sum of the decreases obtained with the individual incorporation of these materials) would be between 16.6% and 41.5%, respectively. The results obtained allow for concluding that the joint use of these materials in ternary mortars improves the mechanical capacity, relative to the individual incorporation of each material in binary mortars.