Primaquine is an N-substituted diamine that is pentane-1,4-diamine substituted by a 6-methoxyquinolin-8-yl group at the N4 position. It is a drug used in the treatment of malaria and Pneumocystis pneumonia. It has a role as an antimalarial. It is an aromatic ether, an aminoquinoline and a N-substituted diamine.