Sobek was the ancient Egyptian god of the Nile . In art , he was shown with the head of a crocodile . 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 .