Complex sentence: In the 15th century the Shirvanshah dynasty, under Ibrahim I of Shirvan, transferred his country's capital from Shemakha to Baku following a devastating earthquake, and where he committed himself to the construction of the "palace".
Split into simpler sentences: In the 15th century the Shirvanshah dynasty, under Ibrahim I of Shirvan, transferred his country's capital from Shemakha to Baku following a devastating earthquake. He committed himself to the construction of the "palace".