Complex sentence: Because Muhammad met several times the jinns at night, a masjid (Masjid-i Jinn) was built at a future date to the memory of this phenomena.
Split into simpler sentences: Because Muhammad met several times the jinns at night. A masjid (Masjid-i Jinn) was built at a future date to the memory of this phenomena.