The overall goal of the Napoleonic Code was to allow Napoleon's Empire to thrive socially and economically, primarily by forbidding birth-right privileges, forbidding nepotism in government jobs, and allowing for religious freedom (which was a highly progressive measure given the time in question).