Islam originated in the 7th century in the Arabian Peninsula. It was promoted by the preaching of Muhammad, who received revelations from God that were recorded in the Quran. Muhammad began preaching in Mecca but faced opposition, so he migrated to Medina where he established the first Muslim community. From there, Islam expanded rapidly through military conquests after Muhammad's death, establishing a caliphate that stretched from Spain to India within the next hundred years.