Kālayāvan was an asura who surrounded Mathura with an army of thirty million monstrous friends. Then Krishna departed to build a city of Dwārkā amidst sea, transported all his people to this city and left them in Dwārkā. Then Krishna returned and slew Kālayāvan.