Porphyrins having an adenine-thymine or guanine-cytosine pair have been synthesized. Spectroscopic study has revealed that the two nucleobases form inter- and intramolecular base pairs in anti and syn atropisomers, respectively, and that the guanine-cytosine pair is more close to the porphyrin ring than the adenine-thymine pair.