The demand for electric vehicles continues to grow, as evidenced by global sales of electric vehicles reaching 2.2 million in 2019 and more than doubling to 6.6 million in 2021. The rapid growth of renewable energies and electric vehicles (EVs) necessitates the use of microgrids, which are a promising solution to the problem of integrating large-scale renewables and EVs into the electric power system. Besides, the essential policy support provided by the government is an increase in the availability of public charging infrastructure for EVs. This research employs a fast-charging configuration of an off-board charger with DC energy transfer. Implementation of DC energy transfer for vehicle-to-grid and grid-to-vehicle technology in a microgrid due to DC charging’s unrestricted charger-rated power and rapid power transfer. However, the integration of EVs in the Microgrid system creates some operational challenges, which in this research are power quality issues such as harmonics in power systems that affect both utilities and consumers. The design models using the PI controller and the fuzzy controller based on MATLAB software are simulated to determine the control system’s effectiveness. These simulations assess the control system’s performance, and both approaches help improve the system’s performance power quality by minimizing the system’s total harmonic distortion (THD). According to the results, the fuzzy logic controller exceeded the traditional PI controller as demonstrated by minimizing the THD and also in terms of improving the waveform quality which achieved high accuracy with good performance. This research also utilized the fuzzy logic controller to control the power transfer between EVs and the microgrid, which differs from other research work, to achieve high system efficiency for the benefit of consumers.