The report focuses on the process of obtaining closed cell aluminum foam by introducing a composite material obtained by high energy mechanical treatment in a planetary mill into the melt. In contrast to known methods, the paper describes the foaming performed by introducing compressed precursors based on aluminum into the melt. Air-atomized aluminum powder and titanium hydride were used as raw materials for the production of precursors, AK5M2 silumin melt was used for the basis. Implementation of these works does not require the creation of a protective atmosphere and equipment for hot pressing. Photographs of the samples’ appearance and study results have been presented. It has been shown that the method of introducing mechanocomposites into the melt may be used for the manufacture of closed cell aluminum foam.