This vow was the result of a deal made between Snape and Lucius Malfoy, where Snape would help Draco carry out a dark task (which was later revealed to be killing Dumbledore). In return, Lucius ensured Snape would be able to protect Narcissa from any harm.