It's a place where immoral, illegal or sexual activities take place. The phrase suggests somewhere rather unsalubrious.
"Den" is taken from its usage as an animal's home. Foxes, for example, live in a den.
"Vice" is the collective term for sexual (sometimes sexually depraved) activities or offences.
In the British police, the "vice squad" is the department which deals with sexual crimes.
Student or Learner