In 1901, the 27th Punjabis were dispatched to British Somaliland to suppress the resistance movement led by Diiriye Guure[2] of the Dervish State.
Sikhs and Jats were transferred to the Indian Army and the regiment's new class composition was fixed as Punjabis and Pathans.
The 2nd Battalion was reformed as a Medium Machine Gun battalion, moving to Kohat in early 1946; by the time of Partition in August 1947 all the British and non-Muslim officers had left, except for one Indian officer, the Adjutant and he left once all Indian Army personnel moved to India.
The unit helped to escort the 3rd Grenadiers from Kohat to Rawalpindi, after they had been ambushed twice by Pathan tribes.
The line up of the new regiment was:[1]China 1860–62, Ali Masjid, Peiwar Kotal, Charasiah, Kabul 1879, Ahmad Khel, Kandahar 1880, Afghanistan 1878–80, Burma 1885–87, Chitral, Somaliland 1901–04, Loos, France and Flanders 1915, Suez Canal, Egypt 1915, Megiddo, Sharon, Palestine 1918, Tigris 1916, Kut al Amara 1917, Baghdad, Mesopotamia 1915–18, Persia 1918, NW Frontier, India 1917, Kilimanjaro, East Africa 1914–17, Berbera, Assab, Abyssinia 1940–41, Tug Argan, British Somaliland 1940, The Sangro, The Moro, Cassino II, Gothic Line, The Senio, Italy 1943–45, West Borneo 1941–42, South East Asia 1941–42, Rathedaung, Donbaik, Jail Hill, Naga Village, Kyaukmyaung Bridgehead, Mandalay, Fort Dufferin, Meiktila, Nyaungu Bridgehead, Capture of Meiktila, Taungtha, Myingyan, The Irrawaddy, Yenaungyaung 1945, Kama, Pyawbwe, Toungoo, Pegu 1945, Sittang 1945, Burma 1942–45.