He rebuilt the towns of Upper Beth Horon and Lower Beth Horon, protecting them with strong walls, gates, and bars in the gates.