What did people from earlier ages think comets were?

Well, Here in India, people thought of them as a result of their bad deeds. They thought as if they are punished by God from the sky.