Original: Egyptians who worked or traveled on the Nile hoped that if they prayed to Sobek, the crocodile god, he would protect them from being attacked by crocodiles. The god Sobek, which was depicted as a crocodile or a man with the head of a crocodile was a powerful and frightening deity; in some Egyptian creation myths, it was Sobek who first came out of the waters of chaos to create the world.
Simplified: Sobek was seen as a crocodile headed man or very rarely a plain crocodile.