Usually, a small bit of the old song is "cut" in an audio editor into a loop, a piece of music that when played on repeat does not have any skips or musical pauses. This loop is usually called a "sample" in the world of remixing. This sample is then looped (played over and over) in a sequence to create a new sound. The remixer then mixes the vocal of another song over that loop.