 He initiated the codification of the civil code of Baden.The resulting statute has been describe as "the most thorough of any of the German territorial states".It was published in 1622, but due to the Thirty Years' War, it could not be brought into force until 1654, under his son and successor Frederick V. It remained in force until 1809.