Determining cash holdings is amongst the most important financial decisions made by heads of corporations. This decision relies on theoretical convictions and views as well as firm specific characteristics. This article analyzes the determinants of cash management in Moroccan corporations. By mobilizing all the theories of optimal financial structure, our research attempts to focus on the field of knowledge in the financial management of cash surpluses. No analysis has been carried out concerning cash and cash equivalents in Moroccan firms. These results could, therefore, contextualize the existing knowledge in this research theme and better understand the behavior of companies and their main trends in terms of cash flow, as well as the objectives and motivations of managers. The sample studied consists of 42 Moroccan companies, which are all publicly traded on the Casablanca Stock Exchange over 13 years (2007-2019). This research uses an empirical econometric study based on a positivist approach with a hypothetical-deductive method. We use panel regression analysis and perform all the necessary tests to determine the exact nature of this dataset. Our results show some evidence that a strong positive correlation exists between liquidity level and cash-flow as well as family shareholding. It is also found that the cash holdings of these companies are significantly negatively affected by how large or small the firm is, working capital requirement, debt leverage, as well as growth opportunity of the firm.