"In that I was rebellious to his law"

(Canto 1, line 125)

Because Virgil lived before the advent of Christianity, he is a heretic and cannot enter Paradise.