He fortified the towns of Upper Beth-horon and Lower Beth-horon, rebuilding their walls and installing barred gates.