Before "a", "o", "u":
* The "g" is pronounced like the "g" in the English word "go".
* Example: "gato" (cat) - pronounced like "gah-toh"
Before "e", "i":
* The "g" is pronounced like the "h" in the English word "house". This sound is called the "soft g" sound.
* Example: "gente" (people) - pronounced like "hen-tay"
Before "ue" and "ui":
* The "g" is pronounced like the "g" in the English word "go" only if the "u" is pronounced.
* Example: "guerra" (war) - pronounced like "geh-rrah"
* If the "u" is not pronounced, then the "g" is pronounced like the "h" in "house".
* Example: "guerra" (war) - pronounced like "geh-rrah"
Exceptions:
* There are a few words where the "g" is pronounced differently, such as:
* "güe" - pronounced like "way"
* "gui" - pronounced like "gee"
* "aguja" (needle) - pronounced like "ah-goo-hah"
* "lengua" (tongue) - pronounced like "len-gwah"
Practice:
The best way to learn how to pronounce the "g" in Spanish is to practice saying words out loud. You can find lists of Spanish words online or in a Spanish language textbook.