Displacement-based methods contained in recent standards for seismic safety assessment require the determination of the full nonlinear pushover curve for local failure mechanisms in historic masonry structures. This curve should reflect both the initial elastic behavior and the rigid body behavior after the activation of rocking. In this work, a rigid block model is proposed for the displacement-based seismic assessment of local collapse mechanisms of these structures. Masonry is modeled as an assemblage of two-dimensional rigid blocks in contact through frictional interfaces. Two types of contact models are formulated to capture, respectively, the pre and postpeak branches of the pushover curve: a unilateral elastic contact model, capturing the initial nonlinear behavior up to the force capacity of the structure, corresponding to the activation of the collapse mechanism, and a rigid contact model with finite friction and compressive strength, which describes the rigid-body rocking behavior up to the attainment of the displacement capacity of the structure. Tension-only elements are also implemented to model strengthening interventions with tie-rods. The contact problems associated with the elastic and rigid contact models are formulated using mathematical programming. For both models, a sequential solution procedure is implemented to capture the variation of the load multiplier with the increasing deformation of the structure (P-Δ effect). The accuracy of the modeling approach in reproducing the pushover curve of masonry panels subjected to horizontal seismic loads is evaluated on selected case studies. The solution is first tested against hand calculations, existing analytical models, and distinct element simulations. Then, comparisons against experimental tests follow. As a final application, the failure mechanism and pushover curve of a triumphal masonry arch are predicted by the model and its seismic assessment is performed according to codified force-and displacement-based methods, demonstrating the adequacy of the proposed tool for practice.This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited.