In chemistry, quaternary ammonium cations, also known as quats, are positively-charged polyatomic ions of the structure , R being an alkyl group or an aryl group. Unlike the ammonium ion () and the primary, secondary, or tertiary ammonium cations, the quaternary ammonium cations are permanently charged, independent of the pH of their solution. Quaternary ammonium salts or quaternary ammonium compounds (called quaternary amines in oilfield parlance) are salts of quaternary ammonium cations. Polyquats are a variety of engineered polymer forms which provide multiple quat molecules within a larger molecule. Quats are used in consumer applications including as antimicrobials (such as detergents and disinfectants), fabric softeners, and hair conditioners. As an antimicrobial, they are able to inactivate enveloped viruses (such as SARS-CoV-2). Quats tend to be gentler on surfaces than bleach-based disinfectants, and are generally fabric-safe. Synthesis Quaternary ammonium compounds are prepared by the alkylation of tertiary amines with a halocarbon. In older literature this is often called a Menshutkin reaction, however modern chemists usually refer to it simply as quaternization. The reaction can be used to produce a compound with unequal alkyl chain lengths; for example when making cationic surfactants one of the alkyl groups on the amine is typically longer than the others. A typical synthesis is for benzalkonium chloride from a long-chain alkyldimethylamine and benzyl chloride: CH3(CH2)_\mathit{n}N(CH3)2{} + ClCH2C6H5 ->{} [CH3(CH2)_\mathit{n}N(CH3)2CH2C6H5]+Cl- Reactions Quaternary ammonium cations are unreactive toward even strong electrophiles, oxidants, and acids. They also are stable toward most nucleophiles. The latter is indicated by the stability of the hydroxide salts such as tetramethylammonium hydroxide and tetrabutylammonium hydroxide even at elevated temperatures. The halflife of Me4NOH in 6M NaOH at 160 °C is >61 h. Because of their resilience, many unusual anions have been isolated as the quaternary ammonium salts. Examples include tetramethylammonium pentafluoroxenate, containing the highly reactive pentafluoroxenate () ion. Permanganate can be solubilized in organic solvents, when deployed as its salt. With exceptionally strong bases, quat cations degrade. They undergo Sommelet–Hauser rearrangement and Stevens rearrangement, as well as dealkylation under harsh conditions or in presence of strong nucleophiles, like thiolates. Quaternary ammonium cations containing N−C−C−H units can also undergo the Hofmann elimination and Emde degradation. Examples Tetramethylammonium ion: , also denoted (Me = methyl group) Tetraethylammonium ion: , also denoted (Et = ethyl group) Tetrapropylammonium ion: , also denoted (Pr = propyl group) Tetrabutylammonium ion: , also denoted (Bu = butyl group) Applications Quaternary ammonium