In 1813–14, Ranjit Singh's first attempt to expand into Kashmir was foiled by Afghan forces led by General Azim Khan, due to a heavy downpour, the spread of cholera, and poor food supply to his troops.