Complex sentence: A castle was built to protect the city, which quickly developed into an administrative and market center as well as a hub for transporting goods by land and sea.
Split into simpler sentences: A castle was built to protect the city. The city quickly developed into an administrative and market center as well as a hub for transporting goods by land and sea.