Ayub Khan joined the Royal Military College, Sandhurst as a trainee in July 1926. He was commissioned as a 2nd Lt. on 2 February 1928 in the 1/14th Punjab Regiment (1st Battalion of the 14th Punjab Regiment) of the British Indian Army – before this he was attached to the Royal Fusiliers. Amongst those who passed out with him was the future chief of army staff of the Indian Army, General Joyanto Nath Chaudhuri, who served as the army chief from 1962 to 1966 while Ayub was the president of Pakistan. After the standard probationary period of service in the British Army, he was appointed to the British Indian Army on 10 April 1929, joining the 1/14th Punjab Regiment "Sherdils", now known as 5th Punjab Regiment.