This document presents a simulation of a Dynamic Voltage Restorer (DVR) using an Ultracapacitor for energy storage. It compares the total harmonic distortion (THD) for voltage sags and swells when the Ultracapacitor is connected to the inverter with and without a DC-DC converter. The DVR protects sensitive loads from power quality issues like voltage sags and swells. Ultracapacitors are suitable for this application due to their high power density and ability to provide rapid bursts of power. Simulation results show that connecting the Ultracapacitor to the inverter via a DC-DC converter can improve the THD during compensation compared to directly connecting it without a converter.