The All India Muslim League (AIML) struggled through a variety of circumstances to protect the rights of Indian Muslims.Throughout its history it had to face many challenges and passed through many crisis. Huwever, AIML had to face a crucial juncture in the year 1927 when it was divided into two groups-one led by M.A.Jinnah and the other led by Sir Muhammad Shafi of Punjab.
Sir Mian Muhammad Shafi, KCSI,CIE (1869-1932),was an Indian Muslim politician. He belonged to the well known Arain Mian family of Baghanpura, Lahore. He went to England to study for the bar in Aug 1889. He also took active interest in Anjuman-i-Islamia of London and was elected its president for a term.As a practicing barrister he quickly gained renown and during the 1920s and 1930s he came to be regarded as one of India's leading lawyer.
Shafi organised a Muslim association in early 1906, but when the All India Muslim league was formed, he established its powerful branch in the Punjabof which he became the General Secretar.This branch , organised in Nov. 1907, the Punjab Provincial Muslim League.He was a member of the Simla deputation in 1906. In 1909 and again in 1912, Shafi was nominated to the Provincial Legislative Council . In 1911, 1914, 1917, he was a member of the Imperial Legislative Council. He was appointed a CIE in 1916. In July 1919, Mian Muhammad Shafi , who had been elected as the President of the Chief Court Bar, became a member of the Viceroy's Executive Council during 1919-24. His tenure as Education member wasmarked by many important developments, including the setting up of the Muslim University of Aligarh. He was also acting vice-President of the Governor-General's Executive Council 1922-25. He was council's member for education , health, and later also for law, also, he was knighted in 1925 with the KCSL.