You need the Aqua Lung spell from the library.
Return there, search for the book, Mercury will study from it and then Bam! You'll be able to enter into the cave.
Also, make sure that you donate to the town mayor to learn that you need the spell first.