Sea ice loads on marine structures are caused by the failure process of ice against the structure. The failure process is affected by both the structure and the ice, thus is called ice–structure interaction. Many ice failure processes, including ice failure against inclined or vertical offshore structures, are composed of large numbers of discrete failure events which lead to the formation of piles of ice blocks. Such failure processes have been successfully studied by using the discrete element method (DEM). In addition, ice appears in nature often as discrete floes; either as single floes, ice floe fields or as parts of ridges. DEM has also been successfully applied to study the formation and deformation of these ice features, and the interactions of ships and structures with them. This paper gives a review of the use of DEM in studying ice–structure interaction, with emphasis on the lessons learned about the behaviour of sea ice as a discontinuous medium.This article is part of the theme issue ‘Modelling of sea-ice phenomena’.