ATP-dependent transporter that catalyzes the transport of a broad-spectrum of porphyrins from the cytoplasm to the extracellular space through the plasma membrane or into the vesicle lumen (PubMed:17661442, PubMed:23792964, PubMed:27507172, PubMed:33007128). May also function as an ATP-dependent importer of porphyrins from the cytoplasm into the mitochondria, in turn may participate in the de novo heme biosynthesis regulation and in the coordination of heme and iron homeostasis during phenylhydrazine stress (PubMed:10837493, PubMed:17006453, PubMed:23792964, PubMed:33007128). May also play a key role in the early steps of melanogenesis producing PMEL amyloid fibrils (PubMed:29940187). In vitro, it confers to cells a resistance to toxic metal such as arsenic and cadmium and against chemotherapeutics agent such as 5-fluorouracil, SN-38 and vincristin (PubMed:21266531, PubMed:25202056, PubMed:31053883). In addition may play a role in the transition metal homeostasis (By similarity). {ECO:0000250|UniProtKB:O70595, ECO:0000269|PubMed:10837493, ECO:0000269|PubMed:17006453, ECO:0000269|PubMed:17661442, ECO:0000269|PubMed:21266531, ECO:0000269|PubMed:23792964, ECO:0000269|PubMed:25202056, ECO:0000269|PubMed:27507172, ECO:0000269|PubMed:29940187, ECO:0000269|PubMed:31053883, ECO:0000269|PubMed:33007128}. This is the function of ENSG00000115657 (ABCB6, ATP binding cassette subfamily B member 6 (LAN blood group)).