Seeing as how the cities of Makkah and Madinah were two...
Seeing as how the cities of Makkah and Madinah were two completely different environments, we understand that each was governed by its own ways of thought, and thus the religion of Islam was put face to face with issues and difficulties which were specific to that particular area.
Thus, after we are acquainted with the way of thinking and the particular issues of an area (Makkah or Madinah), and have studied the contents of a surah, we are then able to understand where the surah or the verses of the surah were revealed. For instance, the environment of Makkah was polluted with polytheism and idol worship. The Jews and Christians had not permeated into this city and thus, those who had true faith (iman) were very small in number.
The issue of jihad was not brought up in this environment and in during this time, the Prophet (‘s) had frequent dealings and relations with the idol worshippers. The point of difference of the Prophet (‘s) with the polytheists (of Makkah) was concerning tawhid (the Oneness of Allah (awj)) and the concept of being brought back to life on the Day of Judgment after the physical death in this world.
It is for this reason that the verses whose axis rotates around the discussion of issues such as the origin (of life), Resurrection Day, reproaching polytheism and speaking about the outcome of the previous generations which were inflicted with the anger and punishment of Allah (awj) due to not following His commandments and their appointed Messengers were most often revealed in Makkah. However the environment in Madinah was an atmosphere of faith, virtue and piety.
It was a center where the Ahlul Kitab - especially the Jews – had influenced and permeated into. It was an atmosphere of young men, heroes, champions and brave individuals who readily accepted the teachings of Islam.
In addition, it was also an environment where the Muslims had little need to discuss the foundational beliefs (Usul ad-Din) of the religion, and thus it was time for them to become acquainted with a series of other issues including their practical responsibilities, ethical and societal guidelines and the performance of devotional acts such as salat, sawm (fasting), zakat and other issues.
It is because of this fact that the verses in relation to the Tawrat and Injil and the beliefs of the Ahlul Kitab (Jews and Christians) and the explanation of the altercations, battles and wars of the Muslims with the Ahlul Kitab and the polytheists were revealed in Madinah.