Aziz's political involvement was varied. Before 1942, he was a member of the KMM and after 1945 sympathised with the PKMM. However, in 1950 he joined
UMNO when it was still led by Datuk
Onn Jaafar although his idea of full independence for
Malaya at this time was neither acceptable to Onn nor
Tunku Abdul Rahman. When the
Independence of Malaya Party was formed in 1951 by Onn, Aziz became deputy chairman of the IMP's
Kuala Lumpur branch and contested the 1952 elections in
Sentul but lost to the Alliance candidate. In the same year, he left the IMP due to personal differences with Onn. Upon Tunku's encouragement, he rejoined
UMNO in April 1953. Aziz then held important positions within Umno and the Alliance. In 1953, he was appointed to the Alliance Round Table Conference that called for an early general election in Malaya. In September 1954, Aziz campaigned actively with Tunku in the
Terengganu election which was won by the Alliance despite open support for Parti Negara by the British. In 1955, he was appointed head of Selangor
UMNO and chairman of the Selangor
Alliance. He was very much involved in drafting the 1955 Alliance manifesto for the general election held that year; the manifesto covered issues such as
Malay language, agriculture, economy, education, and finance. In the elections, he stood on the Alliance ticket and won in
Selangor Barat. He faced Parti Negara candidate Mohd Rashid Ahmad, a former schoolmate. Despite official backing for Parti Negara, including from the colonial police force, the Alliance went on to win the first national elections, taking 51 of the 52 seats. Aziz himself obtained 8,713 votes, handily defeating his opponent with a 6,438 majority. For the country's first elections after independence which were held in 1959, Aziz shifted to the
Kuala Langat parliamentary seat. He secured 9,492 votes, defeating Syed Ibrahim Syed Salim of
PMIP by 5,193 votes. In 1987, during PAS muktamar (or annual grand meeting), he was registered as one of the party members. ==Cabinet position==