Central Asia called Mahmud of Ghazni invaded Punjab . However,his successors were overcome by Prithviraj who regained Punjab. In 1192,Muhammad Ghori's won the battle and ruled this region. Thereafter Punjab was ruled by whoever was ruling in Delhi.
In the 15th Sikhism was founded by Guru Nanak that became widely accepted by the people living around there. Later Guru Arjan Dev and Guru Gobind Singh played important roles in the evolution of Sikhism.
Banda Singh Bahadur,a hermit turned military leader temporarily liberated the eastern part of the province from Mughal rule in 1709-10. By the late 18th century, Ranjit Singh (1780-1839) had built up the Punjab into a powerful kingdom. But in 1849 Punjab came under British empire.