Stress: llanas and agudas
The rule: Stress: llanas and agudas
If a word has no accent mark, the stress follows a simple rule. A word ending in a vowel, n, or s is stressed on the second-to-last syllable (these words are called llanas): casa, hablan, lunes. A word ending in any other consonant is stressed on the last syllable (agudas): hablar, ciudad, reloj. If the stress falls anywhere else, an accent mark is written: café, árbol, música. Words stressed on the third syllable from the end are esdrújulas, and they always have an accent mark.
Examples
casa
CA-sa: ends in a vowel → second-to-last syllable
CA-sa: ends in a vowel → second-to-last syllable
hablan
HA-blan: ends in n → second-to-last
HA-blan: ends in n → second-to-last
hablar
ha-BLAR: ends in r → last
ha-BLAR: ends in r → last
ciudad
ciu-DAD: ends in d → last
ciu-DAD: ends in d → last
música
MÚ-si-ca: esdrújula, always an accent mark
MÚ-si-ca: esdrújula, always an accent mark