The All India Muslim League was formed on December 30, 1906 in Dhaka in response to the political situation in British India. Over 3,000 delegates attended the annual conference of the Mohammadan Educational Conference, where a resolution was passed to form the Muslim League as a separate political party for Muslims. Sir Agha Khan was elected the first president, with the headquarters established in Aligarh. The initial objectives of the Muslim League were to remain loyal to the British and protect Muslim rights and interests.