The city of Qom thrived in the Qajar era. After Russian forces entered Karaj in 1915, many of the inhabitants of Tehran moved to Qom. The transfer of the capital from Tehran to Qom was discussed, but the British and Russians demolished the plan by bringing the monarch of the times, Ahmad Shah Qajar under pressure. Coinciding with this period, a 'National Defense Committee' was set up, and Qom turned into a political and military apex against the Russian and British colonial powers. Qom was also the center from which Ayatollah Khomeini based his opposition to the Pahlavi dynasty, while in Iran.