We propose a two-component dark matter explanation to the EDGES 21 cm anomalous signal. The heavier dark matter component is long-lived whose decay is primarily responsible for the relic abundance of the lighter dark matter which is millicharged. To evade the constraints from CMB, underground dark matter direct detection, and XQC experiments, the lifetime of the heavier dark matter has to be larger than 0.1 τU, where τU is the age of the universe. Our model provides a viable realization of the millicharged dark matter model to explain the EDGES 21 cm, since the minimal model in which the relic density is generated via thermal freeze-out is ruled out by various constraints. Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI. Article funded by SCOAP3 and published under licence by Chinese Physical Society and the Institute of High Energy Physics of the Chinese Academy of Science and the Institute of Modern Physics of the Chinese Academy of Sciences and IOP Publishing Ltd.