Complex sentence: Badan Singh, who came to the throne in 1721, built a palace here but due to its strategic location and proximity to Agra, Deeg had to face repeated attacks by invaders.
Split into simpler sentences: Badan Singh, who came to the throne in 1721, built a palace here. Due to its strategic location and proximity to Agra, Deeg had to face repeated attacks by invaders.