Answer
In 1823, the Sikh leader Ranjit Singh defeated the Afghans in a battle at Attock, which was part of a campaign to expand the Sikh Empire. The Afghans had been encroaching on Sikh territory for some time, and the battle at Attock was a decisive victory for the Sikhs. It secured their control over the area and helped to establish Ranjit Singh as a powerful leader.