This paper describes the design, manufacture and experimental results of a rectangular magnetic coil, which was used in the experiment of excimer laser. The interior dimension of the coil is 925 425 100mm3. With the use of the coil a magnetic field of 0.225T (in the laser cavity) was achieved. The uniformity of electron beam was obviously improved by the magnetic field produced by the coil.