Jack London's purpose in writing "To Build a Fire" is to explore the themes of man versus nature and the power of nature over man. He also uses the story to illustrate the importance of knowledge and experience in the face of danger.