mnli premise: His successor, Dom Dinis (1279-1325), consolidated Portugal's borders by constructing castles along the frontier with Castile. hypothesis: Forty castles were built during this time period.