A metal-catalyzed thermal polymerization strategy toward atomically dispersed catalysts.