Treatment of atelectasis depends on the cause. Mild atelectasis may go away without treatment. Sometimes, medications are used to loosen and thin mucus. If the condition is due to a blockage, surgery or other treatments may be needed.