What declined from the 5th to the 13th centuries