The invention relates to a preparation method of a silicon-aluminum alloy, which comprises steps as follows: a casting or powder metallurgy process is utilized to prepare a silicon-aluminum material of which the mass percent of silicon is 25-90% and the silicon phase dimension is 0.1-20 mm; the prepared silicon-aluminum material can be further welded onto an aluminum sheet, copper sheet, silicon sheet, silicon carbide sheet, germanium sheet, gallium arsenide sheet, gallium nitride sheet or aluminum nitride sheet; and the independent silicon-aluminum block material or silicon-aluminum layer welded on the aluminum sheet, copper sheet, silicon sheet, silicon carbide sheet, germanium sheet, gallium arsenide sheet, gallium nitride sheet or aluminum nitride sheet is subjected to stirring friction to obtain the compact silicon-aluminum composite material of which the mass percent of silicon is 25-90% and the silicon phase dimension is 0.5-50 mu m. The silicon-aluminum material can independently form a block or be compounded on the surface of the aluminum sheet, copper sheet, silicon sheet, silicon carbide sheet, germanium sheet, gallium arsenide sheet, gallium nitride sheet or aluminum nitride sheet.