<diacritize> In the closing years of his life , he strengthened his kingdom by giving it a written legal code , the Lex Salica , and by convening a church council in Orleans to define relations between Church and State . <yor>In the closing years of his life , he strengthened his kingdom by giving it a written legal code , the Lex Salica , and by convening a church council in Orléans to define relations between Church and State . 