The effects of anisotropy and magnetic field on multipaxtite entanglement of ground state in Heisenberg XY model axe investigated. The multipaxtite entanglement increases as a function of the inverse strength of the external field when the degree of anisotropy is finite. There axe two peaks when the degree of anisotropy is γ =± 1. When the degree of anisotropy increases further, the multipartite entanglement will decrease and tend to a constant. The threshold of the inverse strength of the external field for generating multipaxtite entanglement generally decreases with the increasing of qubits.