The invention relates to the field of genetic engineering and particularly relates to an optimized and improved phytase mutant and an encoding gene and application thereof. According to the optimized and improved phytase mutant and the encoding gene and application thereof, one or more loca among the 10 locus, the 70 locus, the 142<nd> locus, the 159 locus and the 255 locus based on SEQ ID No. 2 phytase have amino acid replaced. A powerful genetic engineering means is utilized for improving phytase derivatives and pichia pastoris expression vectors, wherein the phytase derivatives and the pichia pastoris expression vectors serves as a source of escherichia coli, so that a pichia pastoris producing strain which is resistant to high temperature and high in enzyme activity of phytase is obtained. The improved phytase has more advantages in thermostabilization. Meanwhile, the output of the phytase produced through the bacterial strain is substantially raised, the fermenting enzyme activity of the phytase reaches 25400 U / mL within 180 hours and is raised by 59.8% compared with that of phytase which is not transformed. Therefore, the optimized and improved phytase can exhibit immense application potential in the feed industry.