The document presents a novel pilot distance protection scheme for compensated transmission lines that improves the performance of distance relays affected by FACTS devices. It includes a modeling and testing framework using MATLAB/Simulink, demonstrating the scheme's robustness across various fault types and device configurations. The results confirm the effectiveness of the proposed scheme in accurately detecting faults while addressing the limitations of traditional distance relays.