Muhammad VII (Arabic: محمد السابع) (c. 1370 – 13 May 1408; reigned 3 October 1392 – 13 May 1408) was the twelfth Nasrid ruler of the Muslim Emirate of Granada in Al-Andalus on the Iberian Peninsula. He was the son of Yusuf II (reigned 1391–1392) and grandson of Muhammad V (reigned 1354–1359 and 1362–1391). He came to the throne upon the death of his father. In 1394, he defeated an invasion by the Order of Alcántara. This nearly escalated to a wider war, but Muhammad VII and Henry III of Castile were able to restore peace.
In 1404–1405, Muhammad VII concluded a treaty of friendship with Martin I of Aragon and engaged Charles III of Navarre in talks, thwarting Henry III's attempt to enlist those two monarchs as allies against Granada. In 1406, he and Henry III renewed their truce, but it was overshadowed by Muslim raids—possibly not authorized by Muhammad VII—on Castilian territories. Henry III was now intent on war against Granada, but on 25 December 1406 he died. Henry's 1-year-old son John II became king with his uncle Ferdinand and mother Catherine as regents. Ferdinand marched against Granada's western territories in September 1407 and took Zahara de la Sierra. Meanwhile, Muhammad VII conducted raids and sieges on his northeastern frontiers.
In April 1408 Muhammad VII and Ferdinand agreed to a seven-month truce, but on 13 May Muhammad VII died. His older brother succeeded him as Yusuf III and extended the truce until April 1410, after which hostilities resumed between Granada and Castile.