Magwitch, who Pip had helped as a child, had made his fortune in Australia and wanted to repay Pip's kindness and provide him with a better life. However, he kept his identity a secret for a long time, leading to much confusion and drama in the story.