Mechanical behavior and characteristics of two different types of materials: cast iron with lamellar graphite EN-GJL-250 and cast iron with spheroidal graphite EN-GJS-400-15 which were cast in ceramic molds using gravitational casting method has considered in this research. The ceramic molds were obtained by 3D printing method. First, a finite element analysis was developed to determine Tresca and von Mises stresses and the deformations of the ceramic molds under an applied pressure of 25 MPa. Samples were produced by gravitational casting using two types of cast iron materials. Mechanical tests were made using samples produced from these two types of materials and microstructure analysis evaluation of fractured zones was realized by scanning electron microscopy. Obtained results were finally used for designing, developing, and producing of one ‘hydraulic block’ of a railway installation by the Benninger Guss company of Switzerland.