Who killed Ravana?

Rama killed Ravana. Ravana had a boon that no god or demon could kill him, but he never asked for protection from humans. On the last day of the war, after the sage Agastya taught him a hymn to the Sun, Rama struck Ravana in the heart with the arrow of Brahma.
Source: Valmiki Ramayana. Episodes found only in later retellings are marked as such.