Leiria is dominated by its magnificent hilltop castle — one of Portugal's finest medieval fortresses, built by Afonso Henriques and later a royal residence for King Dinis and Queen Isabel. The Pinhal de Leiria national forest planted by King Dinis stretches to the Atlantic beaches and the Lis river winds through the lively city below.