The of D.J. is mixing tracks one after another harmonically and seamlessly to create a long set of music and the purpose is to entertain the audience.
There are different ways of building these musical sets and I will tell you about two of them: DJ sets and live sets.
What does a DJ basically do? Play songs from CD, vinyl or computer with smooth transitions and mix them.