Over the centuries between the rise and decline of the Roman Empire, law was adapted to cope with the changing social situations, and underwent major codification during Justinian I.