It involves the balancing mechanism in your inner ear. You could either have an ear infection, or, some misaligned vertebrae in your neck, if this is the case, a chiroractor would be able to help you and in some instances, the vertigo stops almost right away, I know mine does.
it has to do with the inter ear and it makes you feel like your off balanced, and makes you very dizzy and makes it feel like the room is spinning, it will go away with medications, you need to see a doctor