The ancient mariner learned two things as a result of his harrowing supernatural experience. He learned to value human companionship, and he learned to love both people and animals.
At the beginning of the tale the mariner relates in the poem, the mariner is one of fifty-one sailors on a ship. At first he seems one with the others; they cheer the albatross when it appears and appreciate the luck it seems to bring them. But something causes him to separate from his fellows when, instead of offering food or playing with the albatross like the other mariners, he shoots the bird with his crossbow. At first the men are upset with him, but then they change their tune and believe that the bird had brought "the fog and mist" and that he was right to slay it. However, when the ship gets stuck in the doldrums, the men hang the albatross around his neck, showing he is no longer accepted by them but blamed. When all the men except the mariner fall down dead, their eyes curse him. He endures their cursing looks for seven days and comes to realize that curse is "more horrible" than an orphan's curse. He seems to wish he could die rather than be "alone, alone, all, all alone." Only he and "a thousand thousand slimy things lived on."
The point at which he blesses the water snakes is the turning point. He is able to pray, and the rain comes and the spirits sail him back home. When he returns, he must continue to do penance by sharing the lesson he has learned with chosen listeners. When summing up his tale to the Wedding-Guest, he describes his loneliness and declares that "sweeter than the marriage-feast" is walking "together to the kirk with a goodly company!" In other words, he has learned to value human companionship. Additionally, he tells the guest, "He prayeth well, who loveth well both man and bird and beast." By this he means that God's favor rests on the person who loves not only humans, but also all the creatures God has made. God loves the people he has made, so his people should love God's creation as well.
The lessons the mariner learned, which he passes on to the Wedding-Guest, are first that nothing is as sweet as good human fellowship and second that people should love "all things both great and small" in God's creation.