In season two of Buffy the Vampire Slayer, Angel loses his soul and thus triggers the doors of the hellmouth to open. The only way for Buffy to save the world from apocalypse is to kill Angel and close the doors, so she does that even though Angel was her first and only true love.