In this paper, magnetic photonic crystals is investigated by their magneto-optical properties and interoducing defects to the structure. Physical relations and electromagnetic equations are proposed. A cavity-type 1-D magnetic photonic crystal which has a structure of (MG)4 (M) (GM)4 is simulated based on a finite element method and M is an active magnetic material and G is dielectric. Electric field profile is shown in optical regim and finally Faraday rotation is calculated and analyzed.