An electron gun was designed and the beam optics for a China-made 50 MW klystron was simulated. The electron gun ceramic cylinder was designed and optimized. The China-made cathode was replaced with an imported one to lessen evaporation and arcing. The high voltage (320 kV) of the cathode was increased to meet the klystron output power demand and a low electric field strength (22.1 kV/mm) electron gun was designed to avoid the high power operation which damaged the ceramic cylinder. The klystron output power was increased and life span extended.