An unconditional surrender is a surrender in which no guarantees are given to the surrendering party. In modern times, unconditional surrenders most often include guarantees provided by international law. Announcing that only unconditional surrender is acceptable puts psychological pressure on a weaker adversary, but may also prolong hostilities. Perhaps the most notable unconditional surrender was by the Axis powers in World War II.
After the Battle of the Trench, in which the Muslims tactically overcame their opponents while suffering very few casualties, efforts to defeat the Muslims failed, and Islam became influential in the region. As a consequence, the Muslim army besieged the neighbourhood of the Banu Qurayza tribe, leading to their unconditional surrender. All the men, apart from a few who converted to Islam, were executed, while the women and children were enslaved. The historicity of the incident has been questioned.
When Napoleon Bonaparte escaped from his enforced exile on the island of Elba, among other steps that the delegates of the European powers at the Congress of Vienna took was to issue a statement on 13 March 1815 declaring Napoleon Bonaparte to be an outlaw. The text includes the following paragraphs:
By thus breaking the convention which had established him in the island of Elba, Bonaparte destroys the only legal title on which his existence depended, and by appearing again in France, with projects of confusion and disorder, he has deprived himself of the protection of the law, and has manifested to the universe that there can be neither peace nor truce with him.
The powers consequently declare, that Napoleon Bonaparte has placed himself without the pale of civil and social relations; and that, as an enemy and disturber of the tranquillity of the world, he has rendered himself liable to public vengeance.
Consequently, as Napoleon was considered an outlaw when he surrendered to Captain Maitland of HMS Bellerophon at the end of the Hundred Days, he was not protected by military law or international law as a head of state, and so the British were under no legal obligation to either accept his surrender or to spare his life; however, they did so, exiling him to the remote South Atlantic island of Saint Helena.
The most famous early use of the phrase in the American Civil War occurred during the 1862 Battle of Fort Donelson. Brigadier General Ulysses S. Grant of the Union Army received a request for terms from Confederate Brigadier General Simon Bolivar Buckner Sr., the fort's commanding officer. Grant's reply was that "no terms except an unconditional and immediate surrender can be accepted. I propose to move immediately upon your works." When news of Grant's victory, one of the Union's first in the war, was received in Washington, DC, newspapers remarked (and President Abraham Lincoln endorsed) that Grant's first two initials, "U.S.," stood for "Unconditional Surrender," which would later become his nickname.
However, subsequent surrenders to Grant were not unconditional. When Robert E. Lee surrendered his Army of Northern Virginia at Appomattox Court House in 1865, Grant agreed to allow the men under Lee's command to go home under parole and to keep sidearms and private horses. Generous terms were also offered to John C. Pemberton at Vicksburg and, by Grant's subordinate, William Tecumseh Sherman, to Joseph E. Johnston in North Carolina. 
Grant was not the first officer in the Civil War to use the phrase. The first instance came some days earlier, when Confederate Brigadier General Lloyd Tilghman asked for terms of surrender during the Battle of Fort Henry. Flag Officer Andrew H. Foote replied, "no sir, your surrender will be unconditional." Even at Fort Donelson, earlier in the day, a Confederate messenger approached Brigadier General Charles Ferguson Smith, Grant's subordinate, for terms of surrender, and Smith stated, "I'll have no terms with Rebels with guns in their hands, my terms are unconditional and immediate surrender." The messenger was passed along to Grant, but there is no evidence that either Foote or Smith influenced Grant's choice of words.
In 1863, Ambrose Burnside forced an unconditional surrender of the Cumberland Gap and 2,300 Confederate soldiers, and in 1864, Union General Gordon Granger forced an unconditional surrender of Fort Morgan.
The use of the term was revived during World War II at the Casablanca conference in January 1943 when American President Franklin D. Roosevelt stated it to the press as the objective of the war against the Axis Powers of Germany, Italy, and Japan; in doing so, he surprised the leaders of fellow Allied Powers. When Roosevelt made the announcement at Casablanca, he made reference to General Grant's use of the term during the American Civil War.
The term was also used in the Potsdam Declaration issued to Japan on July 26, 1945. Near the end of the declaration, it said, "We call upon the government of Japan to proclaim now the unconditional surrender of all Japanese armed forces" and warned that the alternative was "prompt and utter destruction."
It has been claimed that it prolonged the war in Europe by its usefulness to German domestic propaganda, which used it to encourage further resistance against the Allied armies, and its suppressive effect on the German resistance movement since even after a coup against Adolf Hitler:
"those Germans — and particularly those German generals — who might have been ready to throw Hitler over, and were able to do so, were discouraged from making the attempt by their inability to extract from the Allies any sort of assurance that such action would improve the treatment meted out to their country."
It has also been argued that without the demand for unconditional surrender, Central Europe might not have fallen behind the Iron Curtain. "It was a policy that the Soviet Union accepted with alacrity, probably because a completely destroyed Germany would facilitate Russia's postwar expansion program."
One reason for the policy was that the Allies wished to avoid a repetition of the stab-in-the-back myth that arose in Germany after World War I, which attributed Germany's loss to betrayal by Jews, Bolsheviks, and Socialists, as well as the fact that the war ended before the Allies reached Germany. The myth was used by the Nazis in their propaganda. It was felt that an unconditional surrender would ensure that the Germans knew that they had lost the war themselves.
With regard to Japan, the demand for unconditional surrender led to Japanese apprehensions that such a surrender would leave the Americans free to prosecute Emperor Hirohito on charges of war crimes. Had the Americans been ready to accept a Japanese surrender conditional upon an immunity to the Emperor (which the US in fact granted after the actual surrender), Japan might have surrendered earlier, and the atomic bombings of Hiroshima and Nagasaki might have been avoided.
On 16 December 1971, Lt. Gen A. A. K. Niazi, CO of Pakistan Armed Forces located in East Pakistan signed the Instrument of Surrender handing over the command of his forces to the Indian Army under General Jagjit Singh Aurora. This led to the surrender of 93,000 soldiers of the Pakistan's East Command and cessation of hostilities between the Pakistani Armed Forces and the Indian Armed Forces along with the guerrilla forces, the Mukti Bahini.
During the Global War on Terror, most internationalist jihadist organizations (as opposed to ideologically similar but more contained hostile regimes like the Taliban) such as ISIL or Al Qaeda have been offered nothing but unconditional surrender of their leaders. The US and UK, for instance, follow a policy of no-negotiation with designated terrorist organizations. One of the reasons for this policy is the perception that such organizations are either not rational actors or do not negotiate in good faith, since they are religious fanatics and would continue to pose a growing threat in the long term, and thus there is no benefit in engaging in negotiated settlements.
A parallel in wartime behaviour could be argued to exist between these groups and past belligerents, for example, the Imperial Japanese Army of World War II, in the sense that they refused to abide by international law of armed conflicts (such as the Geneva convention), viewing it as inferior or even anathema to their own standards, and for a widespread refusal to surrender. In the jihadist terrorist case, this is compounded by the problem that they do not recognize an earthly authority ordering them to surrender that would override their doctrine - such as Emperor Hirohito did in this analogy. It is very unclear whether such an order given by the likes of Ayman al-Zawahiri or Abu Bakr al-Baghdadi would be obeyed by the vast majority of Salafi jihadists.
An advantage of this unconditional surrender or complete destruction policy, permitted by an overwhelming military advantage over their opponents without fear of a realistic strategically vital retaliation, is deterrence to like-minded groups and the shrinking of potential terrorist recruits to the most hardcore in the world. This depletion of human resources from the jihadist side when under serious pressure may be further reinforced by the common knowledge that the allied Western nations in this war usually do not abuse prisoners of war, or are far less likely to do so than local regimes. Despite this, some tactical agreements have been made with groups of such forces in the midst of battles, like in the battle of Raqqa (2017).
In siege warfare, the demand for the garrison to surrender unconditionally to the besiegers is traditionally phrased as "surrender at discretion." If there are negotiations with mutually agreed conditions, the garrison is said to have "surrendered on terms". One example was at the Siege of Stirling, during the 1745 Jacobite Rebellion:
Charles, thereupon, sent a verbal message to the magistrates, requiring them instantly to surrender the town; but, at their solicitation, they obtained till ten o'clock next day to make up their minds. The message was taken into consideration at a public meeting of the inhabitants, and anxiously debated. The majority having come to the resolution that it was impossible to defend the town with the handful of men within, two deputies were sent to Bannockburn, the headquarters of the Highland army, who offered to surrender to terms; stating that, rather than surrender at discretion, as required, they would defend the town to the last extremity. After a negotiation, which occupied the greater part of Tuesday, the following terms of capitulation were agreed upon:...
Surrender at discretion was also used at the Battle of the Alamo, when Antonio López de Santa Anna asked Jim Bowie and William B. Travis for unconditional surrender. Even though Bowie wished to surrender unconditionally, Travis refused and fired a cannon at Santa Anna's army, and wrote in his final dispatches:
The enemy has demanded a surrender at discretion otherwise the garrison are to be put to the sword, if the fort is taken — I have answered their demand with a cannon shot, and our flag still waves proudly from the walls — I shall never surrender or retreat.
The phrase surrender at discretion is still used in treaties. For example, the Rome Statute, in force since July 1, 2002, specifies under "Article 8 war crimes, Paragraph 2.b:"
Other serious violations of the laws and customs applicable in international armed conflict, within the established framework of international law, namely, any of the following acts:
(vi) Killing or wounding a combatant who, having laid down his arms or having no longer means of defence, has surrendered at discretion;
The wording in the Rome Statute is taken almost word for word from Article 23 of the 1907 IV Hague Convention The Laws and Customs of War on Land: "...it is especially forbidden – ... To kill or wound an enemy who, having laid down his arms, or having no longer means of defence, has surrendered at discretion", and it is part of the customary laws of war.