I REALLY need to know this.. how to make the camera rotate

how to make the camera rotate around your animation. For example, if i had a block and it just spun in circles or something and i wanted that to be my animation, what if i wanted the camera to circle around that, so that i whould have a spinning block