On the second floor of the Dar al-Badi Palace, Soult looked irritably at the room directly opposite his temporary office. He hoped that among the ten or so people inside, someone would suddenly jump out and say to him, "I know a shocking secret about the Sultan."

But more than ten days had passed, and these brothers and nephews of the Moroccan Sultan had provided nothing of value other than pleas for mercy.

He had to start arranging the defenses of Marrakesh to deal with the counterattack of Suleiman's large army.

However, he only had 3,500 Portuguese and Spanish soldiers, as well as 4,000 Algiers troops. With a lack of ammunition and supplies, he was not confident in holding this place for long.

Just then, his staff officer suddenly ran in quickly, waving a letter in his hand excitedly: "Commander, they agreed! They agreed!"

Soult stood up quickly: "The General Staff Headquarters agreed to our retreat? No, the news shouldn't have been sent back to Paris that fast."

“It's the Moroccan Sultan,” the staff officer shouted. “He has accepted most of the conditions, including recognizing Spain's rule over Tangier, Tetouan, and northern Salé.

“And he has declared the Wazzan Tribe and the Rif Tribes as 'enemies of the Sultan,' and no Moroccan is allowed to provide them with support..."

Soult's eyes widened instantly. He grabbed the letter and unfolded it to check.

The letter was from Soldano. It said, "Because the military operation in Marrakesh was very successful, Spanish diplomats are currently negotiating the details of a ceasefire with Moroccan officials."

“Why is this happening?” Soult frowned at the staff officer and said cautiously, “This could be a plot by Suleiman to mislead us. Tell the soldiers not to let their guard down.”

The Moroccan army never came. Four days later, a Spanish officer arrived in Marrakesh with a large amount of supplies and horses, explaining to Soult the reason why Suleiman had suddenly yielded.

“I'm going to support Hisham to become the Sultan?” Soult was full of questions.

The Spanish supply officer nodded with a look of admiration: “Everyone in Meknes is spreading that rumor. They also say that the army in Marrakesh has already supported Hisham and will go north with you at any time to attack Meknes.”

Soult asked questions for a full half-hour before he finally understood the reason behind it.

The crux of the problem was that Suleiman was infertile.

Therefore, the next Sultan could only be chosen from among his several brothers.

Among them, Suleiman's second brother, Hisham, had served as the Governor of Marrakesh. However, because he did not support Suleiman's succession as Sultan, he had been kept under house arrest by Suleiman.

Suleiman himself preferred to have his fourth brother, Ibrahim, as his heir. But this time, as he happened to go to Meknes to stabilize the situation, he left Ibrahim to garrison Marrakesh.

As a result, his biggest political rival and his designated crown prince were both captured by the'Spanish' who raided Marrakesh.

Afterward, whether the Spanish government supported either of the two, it would be a huge disaster for Suleiman.

Especially Hisham, who was very influential in Marrakesh and had many sons. Many Moroccan nobles had secret dealings with him—historically, it was indeed Hisham's son, Abd al-Rahman, who ascended the Sultan's throne more than a decade later.

Furthermore, Marrakesh was the economic center of Morocco. Now that the Spanish army controlled it, the northern capital of Morocco would fall into financial collapse within six months.

Suleiman had no confidence in defeating the Spanish within six months—he didn't know that Soult hadn't brought any logistical supplies.

So, after a quick weighing of options, he decided to give up the two northern provinces.

They were already occupied by the Spanish army, and he knew it would be difficult to take them back, so it was better to use them in exchange for a ceasefire.

At the same time, if he could use the hands of the Spanish to eliminate those northern Tribes that always had rebellious intentions, it could be considered helping him get rid of a major concern.

In this way, Spain and Morocco signed the Treaty of Fez at an extremely fast speed. After a 'one-month tour' in Marrakesh, Soult led his army along the northern foothills of the Atlas Mountains and returned to Melilla.

One month later.

Count Floridablanca, the Spanish Chief Minister, along with a group of Spanish military and political officials, came to the Palace of Versailles and handed Charles IV's personal letter to Joseph.

“Originally, His Majesty the King was going to visit you in person. It's just that the war in Portugal is not yet over, which makes it impossible for His Majesty to leave Madrid.”

Joseph opened the letter and saw that the first half was expressing gratitude for France's help in resolving the Moroccan incident, and the latter half mentioned that the Ceuta fortress would be handed over to France ahead of schedule.

According to the previous agreement between Joseph and Charles IV, after Spain recovered Gibraltar, France would control Ceuta.

But this time, Spain not only saved the tens of thousands of troops trapped in the Rif Mountains, but also unexpectedly gained the entire northern province of Morocco—Cordova had originally just asked for an exorbitant price, but he didn't expect Suleiman to actually agree to cede Tangier and Tetouan.

Although the area of these two places was not large—about 13,000 square kilometers—they were plains adjacent to the Mediterranean, with fertile land, and could also enjoy Mediterranean shipping trade, making them excellent colonies.

More importantly, with these two places, Spain's territories in the northern Rif Mountains were all connected. The Moroccan Tribes would no longer be able to carry out fragmented attacks.

As for the northern Tribes such as the Wazzan Tribe, after losing their legal status, they did not dare to entangle with the Spanish army anymore, and most of them retreated into the Rif Mountains. A few Tribes chose to join Spain.

So when the news reached Madrid, Charles IV was almost crazy with joy and immediately decided to hand over Ceuta to France ahead of schedule.

It should be known that historically, Spain's acquisition of the northern coastal colonies of Morocco would have to wait for thirty or forty years, and it cost a full 70,000 troops. Well, later they also relied on France to help them win the war.

Of course, the early handover of Ceuta was also the idea of several Spanish ministers. After France obtained this place, they would certainly be embarrassed to not put in effort in the matter of attacking Gibraltar.

Joseph put the letter back into the envelope, a smile appearing on his face.

Although Charles IV's ability was not great, he was quite sensible in how he handled things.

With him handing over Ceuta ahead of schedule like this, it made it difficult for Joseph to even ask him for Soult's 'rental fee'.

Now, the French Navy indeed urgently needed a base near the Strait of Gibraltar.

Previously, starting from the nearest Port of Mitidja, it would take at least 8 days to sail out of the Mediterranean.

But starting from the Port of Ceuta, it only took three hours.

This provided a great strategic advantage for the French Navy to go west into the Atlantic Ocean and deal with the British Navy in the future.

In addition, in the future, the large number of steam warships in the French fleet could also replenish coal in Ceuta, and their combat efficiency would increase manifold.