XDR-TB develops through the mismanagement of TB treatment. This can occur due to inadequate or incomplete treatment regimens, poor quality drugs, and lack of patient adherence to treatment plans. Over time, the Mycobacterium tuberculosis bacteria mutate and develop resistance to multiple drugs. This process is exacerbated by the lack of effective diagnostic tools in many regions, leading to delayed or incorrect treatment.