The present invention relates to spirocyclic quinolizine derivatives and pharmaceutically acceptable salts or prodrug thereof, compositions comprising at least one spirocyclic quinolizine derivative, and methods of using the spirocyclic quinolizine derivatives for treating or preventing HIV infection in a subject.