Relighting the pilot light is the first thing to do when it goes out. If the pilot doesn't relight, if it goes out right after lighting, or if the pilot light keeps going out, the most common cause is a bad thermocouple.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.