The perception and the evaluation of natural risks and more particularly of the seismic hazard have never been so important and highlighted by the authorities. This phenomenon leads to a deep adjustment of tools used up to now in the assessment of the vulnerability of buildings. New approaches as numerical approaches have to be proposed so as to best estimate the risk. Among all the numeriacl methods developed to take into account specificities of masonry buildings, approaches by discrete elements methods as the NSCD method ("Non Smooth Contact Dynamics") seem to be particularly well adapted. This PhD thesis aims to best understand the mechanical behaviour of masonry structures by using this discrete method implemented in the software LMGC90 so as to give an accurate estmation of the seismic vulnerability of buildings. The very purpose of this work is to develop a calculation tool able to deal with the vulnerabilityof both specific and common masonry buildings.