A 170 GHz gryotron is an ideal power source for the Electron Cyclotron Resonance Heating (ECRH) in the plasma fusion. The required output power from a single gyrotron tube at 170 GHz operating frequency for ECRH application is 1 MW or more. For generating the high output power,a Magnetron Injection Gun(MIG) which can provide the electron beam with large enough transverse energy for interacting with the transverse filed of the electromagnetic wave is designed. Ideal parameters of the double-anode MIG are obtained according to the adiabatic compression theory and the correlative simulation software. The designed MIG can provide the necessary beams for the 170 GHz fundamental harmonic gyrotron under 80 kV of voltage and 40 A of current with the guidance center radius of 8.27 mm and the pitch factor of 1.5.