The ship was carrying Moroccan pilgrims on the way to Mecca, and a cooking fire on deck probably accidentally ignited nitrate in one of the ship's cargo holds, resulting in a number of explosions and causing the ship to run aground.