Ancient Mariner

The Ancient Mariner was a sailor who was shipwrecked and woke up in a cave on an unnamed planet. He lived there for years until the Doctor's TARDIS fell into his cave, and he decided to use it as his house. The Doctor, John and Gillian came looking for their ship, and after hearing the Mariner's story, they helped him build a new house before departing. (TVC: Shark Bait)