The following is from Jonathan Edwards’s A History of the Work of Redemption, and deals with the flood and Noah’s ark.
By means of this flood, all the enemies of God’s church, against whom that little handful had no strength, were swept off at once. God took their part, appeared for them against their enemies, and drowned those of whom they had been afraid, in the flood of water, as he drowned the enemies of Israel that pursued them in the Red sea.
Indeed God could have taken other methods to deliver his church: he could have converted all the world instead of drowning it; and so he could have taken another method than drowning the Egyptians in the Red sea. But that is no argument, that the method he did take, was not a method to show his redeeming mercy to them.
By the deluge the enemies of God’s people were dispossessed of the earth, and the whole earth was given to Noah and his family to possess it in quiet; as God made room for the Israelites in Canaan, by casting out their enemies from before them. And God thus taking the possession of the enemies of the church, and giving it all to his church, was agreeable to that promise of the covenant of grace: Ps. xxxvii. 9-11. “For evil-doers shall be cut off: but those that wait upon the Lord, they shall inherit the earth. For yet a little while and the wicked shall not be: yea, thou shalt diligently consider his place, and it shall not be. But the meek shall inherit the earth, and shall delight themselves in the abundance of peace.”
Another thing belonging to the same work, was God’s wonderfully preserving that family of which the Redeemer was to proceed, when all the rest of the world was drowned. God’s drowning the world, and saving Noah and his family, were both reducible to this great work. The saving of Noah and his family belonged to it two ways, viz. as from that family the Redeemer was to proceed, and it was the mystical body of Christ that was there saved. The manner of saving those persons, when all the world besides was so overthrown, was very wonderful. It was a wonderful type of the redemption of Christ, of that redemption that is sealed by the baptism of water, and is so spoken of in the New Testament, as 1 Pet. iii. 20, 21. “Which sometimes were disobedient, when once the long-suffering of God waited in the days of Noah, while the ark was a preparing, wherein few, that is, eight souls, were saved by water. The like figure whereunto, even baptism, doth also now save us, (not the putting away of the filth of the flesh, but the answer of a good conscience towards God,) by the resurrection of Jesus Christ.” That water which washed away the filth of the world, that cleared the world of wicked men, was a type of the blood of Christ, that takes away the sin of the world. That water which delivered Noah and his sons from their enemies, is a type of the blood that delivers God’s church from their sins, their worst enemies. That water which was so plentiful and abundant, that it filled the world, and reached above the tops of the highest mountains, was a type of that blood, which is sufficient for the whole world; sufficient to bury the highest mountains of sin. The ark, that was the refuge and hiding-place of the church in this time of storm and flood, was a type of Christ, the true hiding-place of the church from the storms and floods of God’s wrath. [source]