The properties of prepared foamed lightweight soils (FLSs) using prefabricated foam requires high foam stability. This paper investigates the geometrical characteristics of different foam densities, different types of foaming agents in the air, and the presence of slurry. Then, it studies their effects on the pore structure and mechanical properties of FLS. Results show that with the increase in foam density the bleeding rate of foam in the air for 1 h increases and the foam with a foam density of 50 kg/m3 is the most stable in the air. The stability of foam in slurry is not directly related to the property of foam in the air. The FLS prepared with the same foaming agent had the best performance with the FLS designed with a foam density of 50 kg/m3, which had the smallest average pore size and the most minor pore size distribution, and had the highest compressive strength. Among the three different foaming agents, Type-S was the best, and the slurry had the lowest rate of increase in wet density after the defoaming test, indicating that the foam had the best stability in the cement slurry. The FLS prepared with the density of 50 kg/m3 using the Type-S foaming agent and mixed with the slurry of cement, fly ash:slag:water = 105:105:140:227.5, was hardened to a mean pore size of 299 μm, and the 7 days, 28 days, and 56 days compressive strengths were 0.92 MPa, 2.04 MPa, and 2.48 MPa, respectively, which had the smallest average pore size and the highest compressive strength among the FLSs prepared using the three foaming agents.