<prompt> Translate the following text to EnglishMfalme Afonso III 1248-1279 alimaliza kazi ya kuukamata tena mji wa Portugal na kuufanya kuwa na mipaka ya nchi hiyo, miaka 250 kabla ya Wahispania kufanya hivyo.  <response>: Not until 1249 did King Afonso III 1248-1279 complete the Reconquest and secure borders for Portugal 250 years before the Spanish could do the same. 