Extracorporeal membrane oxygenation (ECMO) is a life support machine. People who need ECMO have a severe and life-threatening illness that stops their heart or lungs from working properly. For example, ECMO is used during life-threatening conditions such as severe lung damage from infection, or shock after a massive heart attack.