Examples of using "なぜそんなことをしたの。" in a sentence and their spanish translations:
¿Por qué lo has hecho?
¿Para qué hiciste eso?
¿Por qué carajo hiciste eso?
Él se preguntaba por qué ella hizo eso.