The magnetic compression technique has been used to establish an animal model of tracheoesophageal fistula (TEF), but the commonly shaped magnets present limitations of poor homogeneity of TEF and poor model control. We designed a T-shaped magnet system to overcome these problems and verified its effectiveness via animal experiments. To investigate the effectiveness of a T-shaped magnet system for establishing a TEF model in beagle dogs. Twelve beagles were randomly assigned to groups in which magnets of the T-shaped scheme (study group, n = 6) or normal magnets (control group, n = 6) were implanted into the trachea and esophagus separately under gastroscopy. Operation time, operation success rate, and accidental injury were recorded. After operation, the presence and timing of cough and the time of magnet shedding were observed. Dogs in the control group were euthanized after X-ray and gastroscopy to confirm establishment of TEFs after coughing, and gross specimens of TEFs were obtained. Dogs in the study group were euthanized after X-ray and gastroscopy 2 wk after surgery, and gross specimens were obtained. Fistula size was measured in all animals, and then harvested fistula specimens were examined by hematoxylin and eosin (HE) and Masson trichrome staining. The operation success rate was 100% for both groups. Operation time did not differ between the study group (5.25 min ± 1.29 min) and the control group (4.75 min ± 1.70 min; P = 0.331). No bleeding, perforation, or unplanned magnet attraction occurred in any animal during the operation. In the early postoperative period, all dogs ate freely and were generally in good condition. Dogs in the control group had severe cough after drinking water at 6-9 d after surgery. X-ray indicated that the magnets had entered the stomach, and gastroscopy showed TEF formation. Gross specimens of TEFs from the control group showed the formation of fistulas with a diameter of 4.94 mm ± 1.29 mm (range, 3.52-6.56 mm). HE and Masson trichrome staining showed scar tissue formation and hierarchical structural disorder at the fistulas. Dogs in the study group did not exhibit obvious coughing after surgery. X-ray examination 2 wk after surgery indicated fixed magnet positioning, and gastroscopy showed no change in magnet positioning. The magnets were removed using a snare under endoscopy, and TEF was observed. Gross specimens showed well-formed fistulas with a diameter of 6.11 mm ± 0.16 mm (range, 5.92-6.36 mm), which exceeded that in the control group (P < 0.001). Scar formation was observed on the internal surface of fistulas by HE and Masson trichrome staining, and the structure was more regular than that in the control group. Use of the modified T-shaped magnet scheme is safe and feasible for establishing TEF and can achieve a more stable and uniform fistula size compared with ordinary magnets. Most importantly, this model offers better controllability, which improves the flexibility of follow-up studies.