Spider-Man risks his life on a regular basis. As a superhero, he accepts the dangers that come with protecting the innocent. While he's had many close calls, he has persevered and survived hundreds of daring adventures. However, strange as it may sound, the Web-Slinger has actually died a surprising number of times. Luckily for him, Marvel has undone most of these deaths, whether through time distortions, divine interventions, or even physical transformations. Experiencing such extreme trauma has never caused Spider-Man to waver in his crusade against evil, but it has shaped his outlook on life in a variety of ways.
Source:https://www.cbr.com/spiderman-deaths-marvel-comics/