We have two types of martyrdom:
1- The one who dies with a prophet or Imam in the battlefield. Such people have the highest rewards from Allah.
2- The one who dies in the way of Allah, in the obedience of Allah and on the true path. Such people are also martyrs and their sins are forgiven, but their rank is less than the first.