Treating alkyl iodide with excess ammonia results in primary amine formation. This occurs through nucleophilic substitution, where ammonia (NH$_3$) substitutes the iodine atom on the alkyl iodide. While further substitution can yield secondary or tertiary amines in the presence of excess ammonia, the primary amine is the predominant product.