Atelectasis, the collapse of part or all of a lung, is caused by a blockage of the air passages (bronchus or bronchioles) or by pressure on the lung.