Mobile edge computing contributes to sustainability by reducing the need for data to travel long distances, thereby decreasing energy consumption and carbon emissions. By localizing data processing, MEC reduces the operational demands on central data centers and optimizes energy use, making it an environmentally friendly option for modern computing needs.