Porphyrins have long been proposed as key ingredients in the emergence of life yet plausible routes for forming their essential pyrrole precursor have heretofore not been identified. Here we show that the anaerobic reaction of δ-aminolevulinic acid (ALA, 1-5 mM) with the β-ketoester methyl 4-methoxyacetoacetate (2-40 mM) in water (pH5-7) at 70-100°C for >6 h affords the porphyrinogen, which upon chemical oxidation gives the corresponding porphyrin in overall yield of up to 10%. The key intermediate is the α-methoxymethyl-substituted pyrrole, which undergoes tetramerization and macrocycle formation under kinetic control. The resulting type-I porphyrin bears four propionic acid and four carbomethoxy groups, is distinct from porphyrins (e.g., uroporphyrin or coproporphyrin) derivable from ALA alone via the extant universal biosynthetic path to tetrapyrroles, and is photoactive upon assembly into cationic micelles in aqueous solution. The simple self-organization of eight acyclic molecules into a tetrapyrrole macrocycle, from which a porphyrin is derived that is photoactive in lipid assemblies, augurs well for the spontaneous origin of catalysts and pigments essential for prebiotic metabolism and proto-photosynthesis.