Devil May Cry is first and foremost a video game series from Capcom — but it has also been adapted into an anime series that follows Dante on a series of demon-hunting jobs.
So the short answer: it is both. The games are the original work, and the anime is a companion piece rather than a replacement.