Warfare makes up the major extended metaphor of Holy Sonnet 14, as the speaker presents himself as a captured fortress city. He calls upon God to storm the walls and retake the city. What's curious about this metaphor is that, if the speaker is the city and God is the attacker, God is going to have to do some major damage to the speaker in order to save him. Questions of what it means to be an attacker or a victim dovetail with the notions of rape and ravishment in the poem.
Holy Sonnet 14 can be seen as a reworking of the story of Sodom and Gomorrah, as the speaker begs forgiveness to ward off the destruction of the two cities.