This document analyzes the impact of a Static Synchronous Compensator (STATCOM) on distance protection relays for transmission lines. It presents a simulation of a 400kV, 300km transmission line with a 100MVA STATCOM at the midpoint and distance relays at each end. The simulation shows that the STATCOM affects the impedance seen by the relays during faults, as it injects current and alters line parameters. Traditional relay settings based solely on line impedance may not operate correctly with a STATCOM present. The document discusses modeling of the transmission line, STATCOM, and distance relays in MATLAB/Simulink to study their performance under normal and fault conditions with the STATCOM.