A lung transplant usually takes between 4 and 12 hours, depending on the complexity of the operation.
After you have had a general anaesthetic, a breathing tube will be placed down your throat so your lungs can be ventilated.
The surgeon will make a cut in your chest so your chest can be opened and preparations made to remove the diseased lung or lungs.
If assistance with your circulation is needed, a cardiopulmonary bypass machine may be used to keep your blood circulating during the operation.
The old lung will be removed and the new lung sewn into place.
When the transplant team is confident the new lung is working efficiently, your chest will be closed and you'll be taken off the bypass machine.
Tubes will be left in your chest for several days to drain any build-up of blood and fluid.
You'll be taken to the intensive care unit, where more tubes will be attached to supply your body with medicine and fluids and to drain pee from your bladder.
There are 2 new surgical techniques that will hopefully increase the number of donor lungs available for donation.
Most donations are from people who have died but whose heart is kept beating using life support equipment.
These are often people who have died after a long illness.
It's now also possible for lungs to be taken from a person who's died suddenly and keep their lungs "alive" for around an hour by passing oxygen into them.
The oxygen keeps the biological processes of the lungs going, which preserves them.
Lungs can be damaged when the brain dies, before they're removed for donation.
Because of this, only 1 in 5 lungs are suitable for donation.
Ex vivo lung perfusion is a new technique designed to overcome this problem.
It involves removing the lungs from the body and placing them in a piece of equipment called a perfusion rig.
Blood, protein and nutrients are then pumped into the lungs, which repairs the damage.
The technique is still in its infancy, but hopefully it'll eventually lead to an increase in the number of lungs available for donation.