According to line 26, the declared purpose of the poem is to
Read the explanationHide the explanation
Line 26 states that the poet will assert Eternal Providence and justify the ways of God to men: that is, show that God's dealings with humanity are just despite the Fall and its suffering. The other options describe other kinds of poem (Virgilian epic, pastoral elegy, royal panegyric), none of which fits a republican poet writing after 1660.