Portugal, once a small nation on the edge of Europe, became a pioneer in overseas exploration and built a colonial empire. From driving out the Moors in the Middle Ages to the rise of its railways and modern investments in high-speed lines, Portugal’s history is marked by dramatic shifts.