As a processing technique to change the organization and properties of materials, heat treatment was widely used to strengthen metallic materials. This study examines the impact of varying cooling rates and heat treatment durations on the mechanical properties and microstructure of AlSi10Mg alloys produced through Selective laser melting (SLM). The heat treatment process was Solution Heat Treatment (SHT, 525 °C), and the heat treatment time includes 1 h, 2 h, and 3 h. Cooling methods consist of Refrigerant Cooling (RC), Water Cooling (WC), Air Cooling (AC), Oil Cooling (OC), and Furnace Cooling (FC). As the cooling rate decreases and the heat treatment time increases, the size of the formed Si phase particles varies from small to large, and the distribution deviates from inhomogeneous to homogeneous. In addition, the number of precipitated particles increases and then decreases. To investigate the impact of cooling rates and heat treatment time on the mechanical properties of AlSi10Mg alloys, quasi-static tensile and compression tests were performed. On the other hand, the tensile strength of the heat-treatment samples decreases while the ductility increases, and the Vickers hardness of the samples also decreases with decreasing cooling rate and increasing heat treatment time. The results of the study showed that the cooling rate and heat treatment time of the material had a greater effect on its tensile properties than on its compressive properties. The samples treated at 525 °C - 2 h - AC exhibited the highest tensile and compressive properties. Finally, the analysis of the strengthening mechanism of AlSi10Mg alloys through the presence of Si phase particles of varying sizes was conducted using transmission electron microscopy.