Magnesium carbide on hydrolysis gives propyne.
$Mg _{2} C _{3}+4 H _{2} O \longrightarrow \underset{\text{propyne}}{CH _{3} C \equiv CH} +2 Mg ( OH )_{2}$
$Al _{4} C _{3}+12 H _{2} O \longrightarrow \underset{\text{Methane}}{3 CH _{4}} \uparrow+4 Al ( OH )_{3}$