The dust cover seals the ejection port (which allows spent brass to exit the upper receiver after firing) from allowing contaminants such as sand, dirt, or other debris from entering the mechanism