With the shift of trade routes from land to sea, Petra's importance declined dramatically.
Petra's importance waned significantly with the change from overland to sea trade.
When trade routes changed from over sea to land, Petra became a less important city.