I will examine the practicalities, challenges and difficulties faced by military forces in trying to fight within the provisions of international law against an enemy that deliberately and consistently flouts international law.

I shall focus on counter-insurgency operations from the British and to some extent the American perspective drawing on recent British experience generally and my own personal experience of operating in this environment.

Soldiers from all Western armies, including Israel’s and Britain’s, are educated in the laws of war.

Commanders are educated to a higher level so that they can enforce the laws among their men, and take them into account during their planning.

Because the battlefield – in any kind of war – is a place of confusion and chaos, of fast-moving action the complexities of the laws of war as they apply to kinetic military operations, are distilled down into rules of engagement.

In the British forces, rules of engagement normally regulate military action to ensure that it remains well within the laws of war giving an additional safety cushion to soldiers against the possibility of war crimes prosecution.

In the most basic form these rules tell you when you can and when you cannot open fire.

In conventional military operations between states the combat is normally simpler and doesn’t require complex and restrictive rules of engagement.

Your side wears one type of uniform, the enemy wears another; when you see the enemy’s uniform you open fire.Of course there are complexities.The fog of war, sometimes literally fog, but always fog in the sense of chaos and confusion means that mistakes are made.You confuse your own men for the enemy.

The tragedies that have ensued from such chaos and misunderstanding are legion throughout the history of war.We call it blue on blue, friendly fire or fratricide.

And there are other complexities in conventional combat that make apparent simplicity less than simple.Civilians perhaps taking shelter or attempting to flee the battlefield can be mistaken for combatants and have sometimes been shot or blown up.

Enemy forces sometimes adopt the other side’s uniforms as a deception or ruse.But in the type of conflict that the Israeli Defence Forces recently fought in Gaza and in Lebanon, and Britain and America are still fighting in Iraq and Afghanistan, these age-old confusions and complexities are made one hundred times worse by the fighting policies and techniques of the enemy.

The insurgents that we have faced, and still face, in these conflicts are all different.Hizballah and Hamas over here, Al Qaida, Jaish al Mahdi and a range of other militant groups in Iraq.Al Qaida, the Taliban and a diversity of associated fighting groups in Afghanistan.They are different but they are linked.

They are linked by the pernicious influence, support and sometimes direction of Iran and/or by the international network of Islamist extremism.

These groups, as well as others, have learnt and continue to learn from each others’ successes and failures.Tactics tried and tested on IDF soldiers in Lebanon have also killed British soldiers in HelmandProvince and in Basra.

These groups are trained and equipped for warfare fought from within the civilian population.

Do these Islamist fighting groups ignore the international laws of armed conflict?They do not.It would be a grave mistake to conclude that they do.Instead, they study it carefully and they understand it well.

They know that a British or Israeli commander and his men are bound by international law and the rules of engagement that flow from it.They then do their utmost to exploit what they view as one of their enemy’s main weaknesses.

Their very modus operandi is built on the, correct, assumption that Western armies will normally abide by the rules.

It is not simply that these insurgents do not adhere to the laws of war. It is that they employ a deliberate policy of operating consistently outside international law. Their entire operational doctrine is founded on this basis.

In Gaza, as in Basra, as in the towns and villages of southern Afghanistan, civilians and their property are routinely exploited by these groups, in deliberate and flagrant violation of any international laws or reasonable norms of civilised behaviour for both tactical and strategic gain.

Stripped of any moral considerations, this policy operates simply and effectively at both levels.

On the tactical level, protected buildings, mosques, schools and hospitals, are used as strongholds allowing the enemy the protection not only of stone walls but also of international law.

On the strategic level, any mistake, or in some cases legal and proportional response, by a Western army will be deliberately exploited and manipulated in order to produce international outcry and condemnation.

And in sophisticated groupings such as Hamas and Hizballah, the media will be exploited also as a critical implement of their military strategy.

Thus in April 2004 as Coalition forces fought to wrest the Iraqi town of Fallujah from Al Qaida’s control the media reports screamed of a US bombardment of a mosque.

The reality of that day was that five US Marines were wounded by fire from that mosque and that the Marine commander on the ground exercised great care and restraint, only allowing fire to be directed upon the outer wall of the building.

Despite this, the damage was done and the impression that we had levelled a mosque indiscriminately was firmly established.

In Gaza, according to residents there, Hamas fighters who previously wore black or khaki uniforms, discarded them when Operation Cast Lead began, to blend in with the crowds and use them as human shields.

We have of course seen all this before, in Lebanon, in Iraq and in Afghanistan.

Today, British soldiers patrolling in HelmandProvince will come under sustained rocket, machine-gun and small-arms fire from within a populated village or a network of farming complexes containing local men, women and children.

The British will return fire, with as much caution as possible.

Rather than drop a 500 pound bomb onto the enemy from the air, to avoid civilian casualties, they will assault through the village, placing their own lives at greater risk.They might face booby traps or mines as they clear through.

When they get into the village there is no sign of the enemy.Instead, the same people that were shooting at them twenty minutes ago, now unrecognised by them, will be tilling the land, waving, smiling and talking cheerfully to the soldiers.

These same insurgents will mine roads used by British vehicles and tracks used by foot patrols.Many soldiers have lost their legs or their lives in such attacks.

There is of course no question of minefields being marked, as is required under international law.The idea would be preposterous, but although one of the clearest tenets of the laws of war, is rarely if ever commented on by the media.

Like Hamas in Gaza, the Taliban in southern Afghanistan are masters at shielding themselves behind the civilian population and then melting in among them for protection.

Hamas of course deployed suicide attackers in Gaza, including women and children.

Women and children are trained and equipped to fight, collect intelligence and ferry arms and ammunition between battles.

I have seen it first hand in both Afghanistan and Iraq.Female suicide bombers are almost commonplace.

Schools and houses are routinely booby-trapped.Snipers shelter in houses deliberately filled with women and children.Every man captured or killed is claimed as a taxi driver or a farmer.

In Basra, the common plea from captives was that they were police officers.Unfortunately, more often than not, this particular claim proved to be true.They were only involved in terrorist operations as their shift patterns allowed!

I make light of it but the difficulties in fighting an enemy who legitimately own and use the uniforms, vehicles and weapons of a police force, established, funded and trained by us, are self evident.

The British and US armies have grappled with these problem and I hope that we are now finding some solutions.Solutions that allow us to treat those that oppose us according to the laws of war while also defeating them on the battlefield.When an enemy flouts the rules of war then we cannot shy away from hard decisions.

Let me quote from the US military counterinsurgency manual, recently produced under the direction of General Petraeus and using lessons from Iraq and Afghanistan.This pretty much encapsulates the approach that we use as well as that used by the Americans.

“The principle of proportionality requires that the anticipated loss of life and damage to property incidental to attacks”, that is, to non-combatants, “must not be excessive in relation to the concrete and direct military advantage expected to be gained.Soldiers and marines may not take any actions that might knowingly harm non-combatants.

“This does not mean they cannot take risks that might put the populace in danger.

“In conventional operations, this restriction means that combatants cannot intend to harm non-combatants, though proportionality permits them to act, knowing some non-combatants may be harmed.”

Under our equivalent of General Petraeus’ doctrine, when necessary British forces now attack protected locations after weighing up the risk that non combatants might suffer.We respect international norms and the sanctity of holy places.However, when our troops take fire from these locations or roadside bombs stored there are used to murder the innocent, we have no choice other than to act.

British and American troops now routinely search mosques in Afghanistan and Iraq and when necessary we bring down fire on those locations.This is not done, or should not be done, in a trigger-happy or careless manner but rather in a proportionate way and always with the aim of minimising wider suffering. Obviously this kind of action is undesirable – but faced with the enemy we face, there is no alternative.

General Petraeus’ manual goes further than the strict requirements of the laws of war. Let me quote again:

“The use of discriminating, proportionate force as a mindset goes beyond the adherence to the rules of engagement.”

“Proportionality and discrimination applied in counter insurgency require leaders to ensure that their units employ the right tools correctly with mature discernment, good judgement and moral resolve.”

This describes the use of restraint and focused violence as a positive tool in counter-insurgency, not just as humanitarian and legal moderation.It recognises the importance of winning and maintaining the support of the local population, and sometimes even the insurgent himself, perhaps over and above the priority of winning a particular engagement.

Ultimately, in counter insurgency operations the military commander must balance a series of often conflicting and very difficult judgements in addition to the other pressures he faces on any battlefield.The balance is between firstly achieving the mission by engaging and killing the enemy, secondly, avoiding civilian casualties and thirdly, the effect on hearts and minds – the support or otherwise of the civilian population.

There is a fourth judgement as well.

It is often overlooked in media and human rights groups’ frenzies to expose fault among military forces fighting in the toughest conditions.The fourth is preventing or minimising casualties among your own soldiers.There will frequently be times when a military commander must make a snap judgement between the safety of his own troops and that of other people.

Human nature dictates that he will often choose his own men.It is hard to see how it could be otherwise.And there is more to it even than the commander’s human nature and loyalty to his men.For soldiers to follow their commander into combat – at any level, but especially at the point of battle – they must trust him.

How many soldiers want to die, be blinded, burnt, or have their arms, legs or faces blown off?No soldier will trust, or follow, a commander who is profligate with his men’s lives.

Let us not forget that these calculations, judgements and decisions are not taken in an air conditioned office or from the safety of a rearward military headquarters. The commander must weigh these things up in altogether different circumstances.

As a commander you are surrounded by your men yet totally alone. You have the military arsenal of your country or perhaps an alliance like NATO at your disposal.But the most useful weapons in the kind of close combat I am talking about are the rifle and the bayonet.

You have to kill the enemy knowing that you will then need to shake hands and win the consent of the family in the compound that he is occupying. You haven’t slept for two days, you are shattered, you are wet with sweat and the chaos of battle reigns all about you.

There are no computers, on your map with your pen you must compute the locations and intentions of the enemy, your flanking forces, and your own troop positions.

You must do this immediately because the CO needs a situation report, your company need a briefing to orient them, and your Fire Support Team commander is about to bring in fast air, helicopters and mortars, and needs to know that the danger-close fire missions are not going to kill your own men.You must assess the situation and give the go in seconds to secure the initiative.

The only advantage for the commander of all this is that it makes you forget the eighty pounds on your back, the water in the ditch that is up to your waist, and the sweat and dirt that streams constantly into your eyes.

The battle manifests itself as a wall of noise that surrounds you, interspersed with the infantryman’s most detested sound, incoming bullets cracking above, to the side and below your head.

Every soldier who has been in combat – whether it is Gaza, Lebanon, Afghanistan or Iraq – can testify to the chaos and confusion of war. According to a well-known military adage, ‘no plan ever survives contact with the enemy’.

It is difficult enough to manoeuvre large numbers of troops and vehicles across treacherous and inhospitable terrain, sometimes by night, in dust storms, rain or searing heat, in armoured vehicles with limited external vision

The complexities and potential for confusion are hugely increased when the enemy is trying to prevent you from doing it by killing you and blowing up your vehicles and equipment.

Piled on top of this are the limits of reconnaissance and the frequent inaccuracy or incompleteness of the intelligence picture, sometimes brought about by the enemy’s own operational security, deception and disinformation, sometimes by lack of resources or inadequacy of collection systems.

For every intelligence success, even in modern armies, there are a hundred failures.In close combat even the most technologically sophisticated weapons, surveillance systems and communications devices can, and frequently do, fail, especially when you need them most.

Messages are sometimes not transmitted, not received, or garbled. Precision-guided munitions don’t always hit the target they’re supposed to and sometimes explode when they shouldn’t or don’t explode when they should.

Especially in close infantry combat, the concept of the precise, surgical strike is more often pipe dream than practical reality. The close combat, urban or rural environment that often exists in Helmand, Gaza or Iraq can also serve to diminish the advantages of technology, frequently putting hi-tech British forces for example on an equal footing with the Taliban.

Then there is perceptual distortion, common in combat situations, which can lead a commander or soldier to comprehend events in a way that is different to reality.

The stresses and fears of battle tiredness and the body’s natural chemical reactions including production of adrenalin can lead to excluding or intensifying sounds, tunnel vision, temporary paralysis, events appearing to move faster or more slowly than they actually are, loss, reduction or distortion of memory and distracting thoughts. These affect different people in different ways and can add to the confusion and chaos of battle.

Amid the disorientation, the smoke, the fire, the explosions, the ear-piercing rattle of bullets, the screams of the wounded, the incomplete intelligence picture and the failure of technology commanders and soldiers must work on to achieve their mission, no matter how hard it gets.

These realities apply to any combat situation and the challenges they add are self-evident.But they become that much harder when fighting a tough, wily, skilful enemy one minute shooting at you or setting a landmine to blow up your vehicle the next leaning on the threshold of his compound, smiling at you, dressed indistinguishably from the population.

General Stanley McChrystal, the new US commander of forces in Afghanistan, has said the reduction of unnecessary civilian casualties is one of his top priorities.It should be.That is also a high priority of British commanders in Afghanistan.

I have personally witnessed the efforts that American forces have been making for years in Iraq and Afghanistan to minimise civilian deaths.These have been impressive but of course they have not always worked in either of our armies.

In some cases because of the factors I have mentioned imperfect intelligence, technological failure, poor communications, the fog of war.

There is also another factor that we shouldn’t forget. There will always be bad soldiers who deliberately or through incompetence go against orders.We have seen this in the British Army and among the Americans, in well-publicised cases in Iraq and elsewhere.

I have spoken of the considerable British and American efforts to operate within the laws of war and to reduce unnecessary civilian casualties.But what of the Israeli Defence Forces? The IDF face all the challenges that I have spoken about, and more.Not only was Hamas’s military capability deliberately positioned behind the human shield of the civilian population and not only did Hamas employ the range of insurgent tactics I talked through earlier.They also ordered, forced when necessary, men, women and children , from their own population to stay put in places they knew were about to be attacked by the IDF.Fighting an enemy that is deliberately trying to sacrifice their own people.Deliberately trying to lure you in to killing their own innocent civilians.

And Hamas, like Hizballah, are also highly expert at driving the media agenda.They will always have people ready to give interviews condemning Israeli forces for war crimes.They are adept at staging and distorting incidents.

Their people often have no option than to go along with the charades in front of the world’s media that Hamas so frequently demand, often on pain of death.

What is the other challenge faced by the IDF that we British do not have to face to the same extent?

It is the automatic, pavlovian presumption by many in the international media, and international human rights groups, that the IDF are in the wrong, that they are abusing human rights.

So what did the IDF do in Gaza to meet their obligation to operate within the laws of war?When possible the IDF gave at least four hours’ notice to civilians to leave areas targeted for attack.

Attack helicopter pilots, tasked with destroying Hamas mobile weapons platforms, had total discretion to abort a strike if there was too great a risk of civilian casualties in the area.Many missions that could have taken out Hamas military capability were cancelled because of this.

During the conflict, the IDF allowed huge amounts of humanitarian aid into Gaza.This sort of task is regarded by military tacticians as risky and dangerous at the best of times.To mount such operations, to deliver aid virtually into your enemy’s hands, is to the military tactician, normally quite unthinkable.

But the IDF took on those risks.

In the latter stages of Cast Lead the IDF unilaterally announced a daily three-hour cease fire.The IDF dropped over 900,000 leaflets warning the population of impending attacks to allow them to leave designated areas. A complete air squadron was dedicated to this task alone.

Leaflets also urged the people to phone in information to pinpoint Hamas fighters vital intelligence that could save innocent lives.

The IDF phoned over 30,000 Palestinian households in Gaza, urging them in Arabic to leave homes where Hamas might have stashed weapons or be preparing to fight.Similar messages were passed in Arabic on Israeli radio broadcasts warning the civilian population of forthcoming operations.

Despite Israel’s extraordinary measures, of course innocent civilians were killed and wounded.That was due to the frictions of war that I have spoken about, and even more was an inevitable consequence of Hamas’ way of fighting.

By taking these actions and many other significant measures during Operation Cast Lead the IDF did more to safeguard the rights of civilians in a combat zone than any other Army in the history of warfare.

But the IDF still did not win the war of opinions – especially in Europe.The lessons from this campaign apply to the British and American armies and to other Western forces as well as to the IDF.

We are in the era of information warfare.The kind of tactics used by Hamas and Hizballah and by the Taliban and Jaish al Mahdi work well for them.As they see it, they have no other choice.And they will continue to use it.

How do we counter it?We must not adopt the approach that because they flout the laws of war, we will do so too.Quite the reverse.We must be and remain – whiter than white.

Within the absolute requirements of operational security, and sometimes we may need to really push the boundaries of this out as far as we can, we must be as open and transparent as we can possibly be.

There are three lines of attack.

First, we must allow, encourage and facilitate the media to have every opportunity to report fairly and positively on us and on our activities.This requires positive and proactive, not defensive and reactive, engagement with the media.We should bring the media into our training, let them get to know our units before battle, bring them in whenever possible during combat.

Perhaps embed them into combat units as the British forces often do, sometimes for protracted periods, in Iraq and Afghanistan.Let them see our soldiers doing their job in as complete a way as we can.

There are risks in all this, big risks which are self evident and do not need to be spelt out.But we must be brave enough to take those risks.

The benefits are great.The insurgents – Hamas in particular – put a human face on war with spectacular success.We must do the same.We must let the field soldiers speak with sand on their boots and with a sweat and dirt-covered human face.

Second, we must show the media in a way they cannot misunderstand the abuses perpetrated by the enemy.Our own units must identify such enemy abuses, and make statements about them, backed up by the hardest available evidence.

Every front line unit must be trained and equipped to collect this information in the same way as they are trained and equipped to collect intelligence on enemy operations.

This is information war.

Third, we must be proactive in preventing adverse media stories about our own units.I am not talking here about distorting the facts.We must look ahead and identify potential problem areas – preferably before they arise.We must have what the British Labour Party used to call rapid rebuttal units.

They should have the ability to establish the facts on the front line very, very quickly.Be absolutely sure of the facts, and ensure they are pushed rapidly to the media.If they are not one hundred percent sure of the facts they must say as much.

Where real problems do occur, where our troops are in the wrong, if possible we should say so as quickly as we can, driving the agenda, pre-empting the shrieks of the enemy or of the UN.

This demands a culture of openness and honesty among commanders and soldiers at all levels, so they are willing to admit their mistakes readily to their chain of command.

For any of this to work, I repeat, our people must be whiter than white.This requires the best of training and the toughest of discipline and it is sometimes even harder among conscript troops and mobilised reservists.

Here I am not just talking about serious abuses and breaches of the laws of war.I include smaller things like graffiti-ing and trashing people’s homes that have been taken over, or are searched or cleared.Like being as courteous as possible to civilians.Maintaining control over soldiers who have just seen their best mates blown apart is far from easy, but it is vital.

Where there is genuine concern over our own troops’ conduct or action, we must not hesitate to conduct enquiries and investigations,and if necessary bring people to justice.As far as possible, these processes should also be open and transparent.

But this involves of course yet another major complication –because we must not confuse mistakes made as a genuine consequence of the chaos and fog of war with deliberate defiance of rules of engagement and the laws of war.

Mistakes are not war crimes. We must also know how to explain this.

Most armies do some of these things already.But what we need really is a radical re-evaluation of the effort required to achieve the impact we need.This requires a mind-set that is hard to find in most armies around the world.It requires extra resources and a shift in priorities.And it significantly complicates already highly complex military operations.

It does not answer all of our problems by any means.But all the steps I have mentioned are – in my view – essential to countering the strategies and tactics of the insurgents we are faced with today –in Gaza, Afghanistan, Iraq and elsewhere.

They are also I believe essential in defending our military policies and objectives –and in defending our brave servicemen and women who are prepared to put their lives on the line to defend their country.

Colonel Richard Kemp, CBE, served in the British Army from 1977 - 2006. He was Commander of British Forces in Afghanistan,was an Infantry battalion Commanding Officer, worked for the Joint Intelligence Committee and COBRA and completed 14 operational tours of duty around the globe. He now runs a private security operation in London, advises on defence and security issues and works on behalf of soldiers and families of soldiers killed and wounded in action.

This speech was given at a recent confeence in Israel titled "Hamas, the Gaza War and Accountability under International Law"