The application of Genetic Algorithm (GA) to the optimization of gain of microstrip antenna, fabricated on ferrite substrate, biased externally by a steady magnetic field, is reported. The fitness function for the GA program is developed using cavity method for the analysis of microstrip antenna. The computed results are compared with the results obtained using GA optimizer of MATLAB.