During her time in office, Spain and Morocco formally ended their 2002 military standoff over the uninhabited islet of Perejil, or Leila, and agreed to improve the highly charged relations between the two countries.