Spain’s likely next prime minister, Alberto Nuñez Feijoo, said on Tuesday his top priority would be to defend the territories of Ceuta and Melilla, having heavily criticised his outgoing rival Pedro Sanchez’s handling of a mass migrant crossing into the North African enclave of Ceuta in July.

The issue is likely to cause tension with Morocco, which has long claimed sovereignty over the territories on its border.

The Ceuta crisis, in which more than 80,000 migrants crossed into the territory, became a key theme during the electoral campaign, with Feijoo describing it as “an invasion”.

In a televised speech before party officials in Madrid on Tuesday, in which Feijoo did not mention when coalition talks with the far-right Vox might take place, he listed 11 commitments that would be his government’s priorities.

“The first is to defend Spain’s national sovereignty and territorial integrity, starting with Ceuta and Melilla,” he said.

Feijoo has stated a desire to maintain a “neighbourly” but “firm” relationship with Morocco and has said that his first trip outside the European Union as prime minister would be to Morocco.

But the leader’s discourse towards the country in the election campaign, in which he said that “continuous challenges to (Spain’s) national sovereignty” had gone “far beyond what’s acceptable”, has not gone unnoticed in Morocco.

An article published on Monday in Le360, a Moroccan news website closely aligned with the monarchy’s views, said Feijoo needed to make clear his position on Morocco’s autonomy plan for Western Sahara before a trip to Rabat could take place.

Morocco’s foreign ministry was not immediately available for comment on Feijoo’s proposed trip or his comments regarding Ceuta and Melilla. The Moroccan government has rejected accusations that it was involved in orchestrating July’s mass crossing.

Other commitments listed by Feijoo included restoring the quality of Spain’s democracy and respect for the separation of powers, building homes, bringing order to immigration, guaranteeing the future of the pension system and strengthening public services. His People’s Party has said it will build 1 million homes in the next four years.

The PP won the most votes in Sunday’s election and took 134 seats in the 350-seat lower house, which would allow it to form a majority with the support of Vox, which secured 52 seats.

Vox’s leader Santiago Abascal said on Monday talks between the two parties would start in the coming days, adding there were “many possible formulas” for working together during the four-year legislature.

Abascal has described the Ceuta mass crossing as “an act of war perpetrated by young men of military age” and has called for Spain to permanently militarise the border.