¿Por qué no viniste ayer a la fiesta? - Why didn't you come to the party yesterday?
No comprendo por qué te pones así. - I don't understand why you're angry like that.
Spanish > Spanish
por qué
1. Pregunta por la razón, motivo, origen o causa.
Analysis
por
1. prep. by (indicates the creator of a work)
La novela Cien años de soledad fue escrita por Gabriel García Márquez. - The novel One Hundred Years of Solitude was written by Gabriel García Márquez.
2. prep. for (indicates something given in an exchange)
Lo compré por cincuenta euros. - I bought this for fifty euros.
3. prep. through, out, via (indicating movement)
qué
1. det. what; which (interrogative only)
¿Qué camisa quiere? - Which shirt do you want?
2. det. what; which
No sabía qué hacer - I didn't know what to do
3. adv. (before a noun) what a; such (used as an intensifier)