Based on the Saudi Green initiative, which aims to improve the Kingdom's environmental status and reduce the carbon emission of more than 278 million tons by 2030 along with a promising plan to achieve netzero carbon by 2060, NEOM city has been proposed to be the "Saudi hub" for green energy, since NEOM is estimated to generate up to 120 Gigawatts (GW) of renewable energy by 2030. Nevertheless, the Information and Communication Technology (ICT) sector is considered a key contributor to global energy consumption and carbon emissions. The data centers are estimated to consume about 13% of the overall global electricity demand by 2030. Thus, reducing the total carbon emissions of the ICT sector plays a vital factor in achieving the Saudi plan to minimize global carbon emissions. Therefore, this paper aims to propose an eco-friendly approach using a Mixed-Integer Linear Programming (MILP) model to reduce the carbon emissions associated with ICT infrastructure in Saudi Arabia. This approach considers the Saudi National Fiber Network (SNFN) as the backbone of Saudi Internet infrastructure. First, we compare two different scenarios of data center locations. The first scenario considers a traditional cloud data center located in Jeddah and Riyadh, whereas the second scenario considers NEOM as a potential cloud data center new location to take advantage of its green energy infrastructure. Then, we calculate the energy consumption and carbon emissions of cloud data centers and their associated energy costs. After that, we optimize the energy efficiency of different cloud data centers' locations (in the SNFN) to reduce the associated carbon emissions and energy costs. Simulation results show that the proposed approach can save up to 94% of the carbon emissions and 62% of the energy cost compared to the current cloud physical topology. These savings are achieved due to the shifting of cloud data centers from cities that have conventional energy sources to a city that has rich in renewable energy sources. Finally, we design a heuristic algorithm to verify the proposed approach, and it gives equivalent results to the MILP model.