Purpose This study aims to inspect the impact of earnings quality on corporate cash holdings of Jordanian companies listed on the Amman Stock Exchange. Design/methodology/approach This study examines a large sample of (98) Jordanian companies listed on the Amman Stock Exchange during the period that ranges from 2009 to 2019. Earnings quality was computed using two different methods; firstly, through the absolute abnormal discretionary accruals (as an inverse measure of earnings quality), which were estimated using the Dechow et al.’s (1995) cross-sectional version of the Modified Jones model and the Kothari et al. (2005) model; and secondly, through earnings persistence as a direct measure of earnings quality. Findings The empirical results of this study reveal that poor accounting quality (high levels of abnormal discretionary accruals) is associated with higher levels of cash holdings, implying that as the quality of earnings decreases, the harmful effects of information asymmetry and adverse selection costs will increase, leading, therefore, Jordanian companies to increase their corporate cash holdings levels to act as a buffer against any cash shortages. Further, the authors document that higher accounting quality (more persistent earnings) is associated with lower levels of cash holdings. In addition, this study found that earnings quality negatively and significantly affects the cash holdings of profitable companies in Jordan. Thus, earnings quality appeared to be a significant determinant of cash holdings for profit-making companies but not for companies enduring losses. Originality/value This study contributes to the limited evidence that investigates the relationship between earnings quality and corporate cash holdings. Where the majority of previous studies have focused on developed economies, to the best of the authors’ knowledge, this study is the first in Jordan to comprehensively explore the relationship between earnings quality, computed by the absolute abnormal discretionary accruals and earnings persistence, and corporate cash holdings. Also, it is the first to explore the nature of the earnings quality-cash holding nexus in loss-making companies compared with their profit-making counterparts to the best of the authors’ knowledge. The results of this study have important policy implications for managers, creditors, investors and academics in Jordan and other emerging economies that share similar characteristics.