Despite a common adherence to Islam, Punjabi Muslims did not join the Afghans in their battles against the Sikhs. Often they stood non-aligned, even as, during the Panipat battle of 1761, the Sikhs had remained neutral between the Afghans and the Marathas. On occasion, Punjabi Muslims tilted in favour of the Sikhs.