for most of the day , the cave was flooded by the sea , and could not be accessed by man nor boat , but when the tide was low , a boat could be brought in , the treasure recovered and then taken quickly away , possibly if the main port on the other side of the island was ever under attack .