He appeared on Buffy from 1997 to 1999 , at which point he began starring in Angel , which ran until 2004 . He appeared on Buffy from 1997 to 1999 , at which point he began starring in Angel , which ran until 2004 , with some guest appearances on Buffy after his departure .