Summary:
Great Prophets are earned as the result of collecting Faith, and are the only unit that can found or enhance a religion. Once you've accumulated enough Faith (at least 200 in a standard speed game), you have a chance to spawn a Great Prophet. Once a Great Prophet appears, you can use their "Found Religion" ability to create your own custom religion. Like other Great People, the Great Prophet has other abilities as well, including constructing a special Improvement.