The doctrine of double effect

What is the doctrine of double effect and share an example of how is it used or could be used to resolve conflicting moral duties?