Human multidrug resistance protein 4 (hMRP4, also known as ABCC4), with a representative topology of the MRP subfamily, translocates various substrates across the membrane and contributes to the development of multidrug resistance. However, the underlying transport mechanism of hMRP4 remains unclear due to a lack of high-resolution structures. Here, we use cryogenic electron microscopy (cryo-EM) to resolve its near-atomic structures in the apo inward-open and the ATP-bound outward-open states. We also capture the PGE1 substrate-bound structure and, importantly, the inhibitor-bound structure of hMRP4 in complex with sulindac, revealing that substrate and inhibitor compete for the same hydrophobic binding pocket although with different binding modes. Moreover, our cryo-EM structures, together with molecular dynamics simulations and biochemical assay, shed light on the structural basis of the substrate transport and inhibition mechanism, with implications for the development of hMRP4-targeted drugs.