 Egypt flourished, and the Fatimids developed an extensive trade network in both the Mediterranean and the Indian Ocean.Their trade and diplomatic ties extended all the way to China and its Song dynasty, which determined the economic course of Egypt during the High Middle Ages.Unlike other governments in the area, Fatimid advancement in state offices was based more on merit than heredity.