Aspiration is when liquid or food accidentally gets into the lungs. It can happen with burping, vomiting, or coughing up stomach contents that get into the lungs.