We describe an algorithm for the numerical solution of a phase-field model (PFM) of microstructure evolution in polycrystalline materials. The PFM system of equations includes a local order parameter, a quaternion representation of local orientation and a species composition parameter. The algorithm is based on the implicit integration of a semidiscretization of the PFM system using a backward difference formula (BDF) temporal discretization combined with a Newton-Krylov algorithm to solve the nonlinear system at each time step. The BDF algorithm is combined with a coordinate projection method to maintain quaternion unit length, which is related to an important solution invariant. A key element of the Newton-Krylov algorithm is the selection of a preconditioner to accelerate the convergence of the Generalized Minimum Residual algorithm used to solve the Jacobian linear system in each Newton step. Results are presented for the application of the algorithm to 2D and 3D examples.Key words: Phase-field model, polycrystalline microstructure, method of lines, Newton-Krylov methods 1991 MSC: 35Q99, 65F10, 65H10, 65M06, 65M12, 65M20, 65Z05 * Corresponding author.Email addresses: dorr1@llnl.gov (M. R. Dorr ), fattebert1@llnl.gov (J.-L. Fattebert ), wickett1@llnl.gov (M. E. Wickett ), belak1@llnl.gov (J. F. Belak ), turchi1@llnl.gov (P. E. A. Turchi ).