HMS Lion, a Lion-class battlecruiser, was struck in a turret by a 12 inch round, killing the turret crew. THe turret commander, a Marine officer, ordered the magazine doors shut and the magazine serving that turret flooded before he died. Shortly afterward, cordite charges kept ready below the turret for the next shots (which of course could no longer occur) were ignited by fire and exploded, causing further damage and killing more crew - but they did not trigger an explosion in the nearby magazine because it was flooded and isolated. HMS Indefatigable, an Indefatigable-class battlecruiser, was less lucky - she suffered two magazine explosions in quick succession and sank with only two survivors. HMS Defence, a Minotaur-class armored cruiser, also sank from a magazine explosion, as did the battlecruisers Queen Mary and Invincible.
Investigation concluded the cause was a combination of poor handling of the cordite charges (the charges intended to propel the shell from the gun) and poor design of the magazine doors and loading arrangement. Among other findings, British gunners had fallen into the habit of storing a few cordite charges below the turret in order to speed loading and increase the fire rate, and these exploded when the turrets were hit and caught fire. Additionally, the magazine bulkheads weren't strong enough to resist explosions in the turret and had doors that opened inward into the magazine, therefore more likely to be blown open by an explosion in the turret. Lion's flooded magazine resisted the turret explosion - just barely - thanks to the water flooding the magazine.