The need to act on the challenges brought by climate change calls for an increasing penetration of renewable energy sources (RES) in our society's energy supply, but such integration can be challenging. This study analyzes the impact of large numbers of smart electric vehicles (EVs) in a real urban district, using the Italian town Osimo as a case study, to determine the achievable degree of RES self-consumption and CO2 emission reductions. Osimo features a multi-energy system with electricity, natural gas, district heating, and a 23% share of non-controllable RES capacity, mostly photovoltaics. The presence of EVs is evaluated in the present conditions and in scenarios with an increasing capacity of non-controllable RES. The case study is m...