This paper deals with the analysis of challenges and perspectives of the transition to electric vehicles as a sustainable solution for the transport sector in the context of global energy challenges and the need to reduce negative environmental impacts. With an emphasis on the energy situation in Bosnia and Herzegovina, the paper explores the possibilities of switching to electric vehicles and analyses the effects of electricity sources on CO2 emissions. The paper highlights the motivation to switch to electric vehicles, driven by the need to reduce greenhouse gas emissions and rely on renewable energy sources. After analyzing relevant studies, it is concluded that smaller and lighter electric vehicles have lower CO2 emissions and that the participation of renewable sources in electricity production reduces these emissions. The conducted analysis of the vehicle fleet specifies that the CO2 emissions of electric vehicles are not zero and that they depend on the source of electricity. Furthermore, other factors, such as the production of batteries, also play an important role in the overall environmental impact. Although the motivation to switch to electric vehicles is emphasized to reduce greenhouse gas emissions and use renewable energy sources, it has been shown that the CO2 emissions of electric vehicles are not zero and that it significantly depends on the source of electricity. This paper acknowledges the presence of emissions associated with battery production, storage, and disposal, as well as with vehicles themselves. However, it does not delve into this issue in detail. Future research will aim to address this matter more thoroughly.