The sound [g] is represented by the letter G (ge) [xe] before the vowels a, o, u and by the combination GU before e, i:
gas – [gas]
gol – [gol]
guitarra – [gi`tarra]
guerra – [`gerra]
Unlike the English [g], the Spanish sound is pronounced slightly deeper.