First Battle of Kirkwall

The Second Qunari Invasion of Kirkwall was an engagement between the Qunari forces stranded in Kirkwall and the forces of the city, including the Kirkwall City Guard, Hawke and Hawke's companions, the local chapter of the Templar Order, and the city's Circle of Magi in the year 9:34 Dragon. The invasion ended with the Qunari retreating to Par Vollen, following the death of Viscount Dumar and the intervention of Kirkwall citizen Hawke.

The Tome of Koslun
Sometime prior to 9:31 Dragon, the infamous pirate and duelist Isabela was in possession of the Tome of Koslun, a Qunari artifact which she had stolen from the possession of Orlais on behalf of Castillon, and was being pursued by the Arishok himself, as well as a significant force of Qunari warriors. Unfortunately for them, a storm dashed their ships against the Wounded Coast and stranded them all in Kirkwall. Viscount Dumar, the leader of Kirkwall "granted" the Qunari some space on the docks as a form of appeasement while they waited for transport back to Par Vollen, while the now shipless Isabela worked as a smuggler inside the city. The Qunari could not leave without the Tome back in their possession, while their attempts at finding it went poorly at best. The Arishok did not explain to the viscount about his search for the tome, claiming that he's trying to fulfill a duty to the Qun that no one else can understand.

Rising Tensions
Between 9:31 and 9:34 Dragon, Chantry zealots began protesting and acting out against the "heretical" Qunari, their fear and contempt for the foreign religion causing no small amount of friction between the newcomers and the rest of the city. The zealots began looking for any excuse to set the whole city and the Chantry itself against the Qunari, particularly as various Kirkwall citizens, mostly elves, began to convert to the Qun to find a semblance of purpose. These fanatics could not endure the existence of a competing ideology and so hounded the Qunari mercilessly, while the rest of the population felt uneasy about the presence of so many potentially hostile warriors, especially given that the Qunari seemed uninterested in anything Kirkwall had to offer, including trade.

The Qunari, meanwhile, deliberately isolated themselves in their search for the Tome; moreover, as time passed, many of their number began to forsake the Qun and become Tal-Vashoth, while the Arishok could only brood and seethe at what he considered to be the aimless corruption of the city and its inhabitants.

In response the growing tensions, Dumar called upon Hawke, formerly a Fereldan refugee who escaped the Fifth Blight and had dealings with the Qunari, to settle these matters before they could tear Kirkwall apart. The city did not have the strength to evict their "guests", at least, not in a fashion that would leave it intact; moreover, any hostile military action by Kirkwall would consistute a breach of the Llomerryn Accords, possibly re-igniting the war between the Qunari and the rest of Thedas. Thus, a diplomatic solution was required, if nothing else to ease tensions between the two sides and stabilize the situation, even temporary.

Chantry Instigatinos
The fanatics struck the first blow by attempting to steal the recipe for gaatlok, the strange explosive powder designed by the Qunari and sought after by many in the Andrastian world. By detonating a significant quantity of the blackpowder in the city, the fanatics believed that the resulting devastation could be pinned on the Qunari, and thus led to a full-fledged campaign to drive them from Kirkwall.

Unfortunately for the fanatics, the recipe had been a trap designed to lure out and destroy these hidden enemies of the Qunari. The formula was not for gaatlok, but instead saar-qamek, a Qunari poison gas that can drive non-Qunari insane before killing them. When the fanatics unleashed their ill-gotten weapon on a "hex" neighourhood in Lowtown, they were horrified to discover what they had truly unleashed. Hawke managed to stop the saar-qamek from spreading beyond the confines of the hex before confronting a group of fanatics and killing them.

After the pandemic was resolved, the Arishok sent a delegation to the Viscount for a brief attempt to educate, a sign of considerable hope for the increasingly beleaguered Dumar. But soon after, a group of fanatics led by the templar Ser Varnell and, kidnapped the delegation, having abused the seal of Grand Cleric Elthina to make corrupt City Guardsmen turn a blind eye. The fanatics then held a rally to incite others of their kind, torturing their prisoners to make examples of them.

Varnell and his lackeys were, in fact, the cats-paws of one Mother Petrice, an influental and anti-Qunari member of the Chantry who was manipulating these various factions to hound and harass the foreigners. When confronted by Hawke, Petrice elected to sell out her bodyguard and his associates rather than see her standing within the Chantry jepordize, enabling Hawke to track them down. Unfortunately, the delegation was killed in the ensuing confrontation, leading to a further deterioration of relations between the Qunari and the administration of Kirkwall, while Petrice began to plan some more overt measures to driving out the Qunari.

Following the Qun
In response to the growing hatred towards the Qunari, the viscount's son (and known Qunari sympathizer), Saemus Dumar, decided to the convert to the Qun in hopes of making closer relations. Though many, including the viscount, viewed Saemus' conversion for the Qunari to take advantage of, the Arishok had no desire to use his connections. Saemus was then called away to the city chantry based on a supposed note from his father. But it was in fact a trap. Fearing that others would follow him if he converted, Mother Petrice had Saemus murdered, hoping to turn the boy into a martyr for the anti-Qunari cause and inspiring the city to oust them once and for all. The Arishok saw the death of someone under his command by this plot the final insult, and so subtly began to prepare his forces for war. As for the viscount, the loss of his own son struck his heart with grief and leaving him incapable of leading his fair city.

To Catch a Thief
Eventually, the Tome of Koslun turned up in the possession of a human man named Wall-Eyed Sam. He arranged to sell it to Tevinter mages in Lowtown. The Qunari learned of the exchange and attempted to stop it. As the Tevinters and Qunari have been at war for centuries after the former refused to sign the Llomerryn Accords, losing the tome to their sworn enemies would strike a blow to Qunari morale and turn the tide in the magister's favour. In the midst of the fighting, Isabela, who had become a companion of Hawke, stole the tome off Sam, and fled the city.

The Battle
The Guard-Captain Aveline Vallen of the Kirkwall City Guard and Hawke attempted to negotiate with the Arishok for the release of two elven fugitives who had claimed religious sanctuary with the Qunari, fearing that if they could not succeed at diplomacy, then the whole city would riot against the Qunari. The elves claimed that they were justified in murdering a corrupt guardsman for raping their sister when the guard allegedly did nothing to punish him. The Arishok agreed with the elves, claiming that Kirkwall's ineffective justice system is what drove them to take the law into their own hands. Ultimately, while Aveline admitted that there had been rumors of corruption within the Guard and promised to investigate, her stance was clear; even if their claims were true, it was still murder, and the Arishok threatened the peace by protecting them.

As the guard tried pressing the issue, the Arishok declared that he was unwilling to remain at an impasse any longer; he could not leave without the Tome, but would not allow the city's "corruption" to persist any longer, and so ordered his forces to attack. The contingent of city guards present in the compound were quickly slaughtered, with only Hawke and Aveline escaping. The Qunari then spread out to the rest of Kirkwall in a well coordinated attack, pushing directly into Hightown, while barricading many of the side streets in Lowtown to ward off any flanking force. Aided by their local converts, the Qunari swiftly broke through scattered bands of guardsmen and gangs like, seizing control of Hightown and the Viscount's Keep. As they began to secure the Keep, squads were dispatched to capture as many members of the local nobility as possible, holding them hostage within the keep. Only a few managed to escape, taking refuge within the Chantry and were missed as Hawke led a counterattack up to Hightown. The viscount himself was decapitated by the Arishok, who then planned on indoctrinating all the city's nobility into the Qun or he would kill them if they refused. With the nobility either converted or held hostage, he hoped to break the city's will and prevent any force from moving against his depleted troops.

When the battle had started, a group of Grey Wardens were passing through on a manner of unexplained (yet apparently vital) business. Though they could not get involved in these affairs, they promised to get word out to the other cities of the Marches in hopes that they could send some aid.

Amidst the chaos, Hawke joined forces with First Enchanter Orsino and Knight-Commander Meredith, respective leaders of Kirkwall's Circle of Magi and templars, to storm the keep and retake the city from the Qunari. As Orsino and Meredith were unable to trust each other's leadership, Hawke lead the remaining forces to the Keep.

At the Keep's entrance, a formidable force of Qunari prevented the Templars from entering, but Hawke's company managed to enter the Keep alone and reach the Viscount's Throne Room in time to see the Arishok throw Viscount Dumar's severed head and crown to the floor.

The Arishok
Over the precluding years, the Arishok had gained a level of respect for the talented Hawke. He dubbed Hawke to be basalit-an, a sign of respect to those not of the Qun. Reasoning with Hawke, the Arishok made clear he could not leave without the Tome of Koslun, leaving him without any hope of returning home.

What followed next is a point of much controversy, with different versions of the tale being told. If Hawke had a relationship with Isabela of 50% Friendship or Rivalry or more, then Isabela would return with the Tome, willingly offering it to the Arishok. The Arishok agrees to leave Kirkwall with his men, but only if Isabela returns with them to be indoctrinated to the Qun. Hawke may accept these terms, leading to the Qunari retreating.

If Isabela did not return or Hawke refused to hand her over, the Arishok will challenge Hawke to a duel of single combat (or Fenris will suggest this if he is in the party), promising that his men will peacefully return to Par Vollen if he is defeated. If Hawke accepts, he will face the Arishok alone and defeat him, saving the city. Otherwise, Hawke, Aveline and their companions will battle the Arishok and his Qunari guard together.

Aftermath
With the Qunari presence evicted from Kirkwall (though some remained either as Tal-Vashoth or to retrieve Qunari blades), all of the nobility who were held captive in the keep were grateful towards Hawke for saving their lives. Thus, Hawke was declared Champion of Kirkwall.

With the death of the viscount, Meredith stepped in to maintain order. She effectively assumed the viscount's position in all but the name. Kirkwall soon became a templar-controlled police state, paranoid with fear of maleficar. The Qunari's old compound was turned into another templar training facility after they left, and was still under construction by the time the Mage-Templar War began.