Complex sentence: The city's popularity grew both as a ritual centre and as the administrative centre, a large population was attracted to the city for permanent settlement.
Split into simpler sentences: The city's popularity grew both as a ritual centre and as an administrative centre. A large population was attracted to the city for permanent settlement.