In Persian Islamic legends, the world was ruled by Jann ibn Jann (Son of Al Jann), two thousand years before Adam was created. Jann ibn Jann offended the heavens, whereupon God sent Al-Harith (Iblis) with an army of angels to chastise him. But Jann ibn Jann refused to submit to the angels and a war ensued. At the end, Jann ibn Jann was overthrown by Al-Harith and the angels, who reigned over the world thereafter. Many Arabs regard the Pyramids of Giza as remains of the works done under the rule of Jann

Jann (Arabic) is the ancestor of the jinn in Islam-related beliefs. They are said to have inhabited the earth before Adam, ruled by a king called Jann ibn Jann. In folklore however, many consider them to be punished by God and turned into the weakest class of jinn, comparable to how apes are seen as transformed humans.

Jann from the Semitic root. Jinn is an Arabic term, whose primary meaning is "to hide", It is a neuter singular for jinn.

Many mufassirs regard jann as the ancestors of the jinn, in contrast the jinn applies to a wide range of supernatural creatures, and came later into existence. Some consider jann to be the first of the jinn, and identify them with Iblis or Azazil, created from the fires of samum. (A kind of fire or hot evil wind).

Sahih Muslim describes Al-Jann as being created out of a mixture of fire, this contrasted with the creation of the angels who were made from light and humans from clay-mud.

More Info: en.m.wikipedia.org