You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Aluminium chloride and explain in detail?
Aluminium chloride, also known as aluminium trichloride, is an inorganic compound with the formula AlCl3. It forms hexahydrate  with the formula [Al(H2O)6]Cl3, containing six water molecules of hydration. Both are colourless crystals, but samples are often contaminated with iron(III) chloride, giving a yellow color.
The anhydrous material is important commercially. It has a low melting and boiling point. It is mainly produced and consumed in the production of aluminium metal, but large amounts are also used in other areas of the chemical industry. The compound is often cited as a Lewis acid. It is an example of an inorganic compound that reversibly changes from a polymer to a monomer at mild temperature.

Structure
Anhydrous
AlCl3 adopts three structures, depending on the temperature and the state (solid, liquid, gas). Solid AlCl3 has a sheet-like layered structure with cubic close-packed chloride ions. In this framework, the Al centres exhibit octahedral coordination geometry. Yttrium(III) chloride adopts the same structure, as do a range of other compounds. When aluminium trichloride is in its melted state, it exists as the dimer Al2Cl6, with tetracoordinate aluminium. This change in structure is related to the lower density of the liquid phase (1.78 g/cm3) versus solid aluminium trichloride (2.48 g/cm3). Al2Cl6 dimers are also found in the vapour phase. At higher temperatures, the Al2Cl6 dimers dissociate into trigonal planar AlCl3 monomer, which is structurally analogous to BF3. The melt conducts electricity poorly, unlike more ionic halides such as sodium chloride.
Aluminium chloride monomer belongs to the point group D3h in its monomeric form and D2h in its dimeric form.

Hexahydrate
The hexahydrate consists of octahedral [Al(H2O)6]3+ cation centers and chloride anions (Cl−) as counterions. Hydrogen bonds link the cation and anions.
The hydrated form of aluminium chloride has an octahedral molecular geometry, with the central aluminium ion surrounded by six water ligand molecules. Being coordinatively saturated, the hydrate is of little value as a catalyst in Friedel-Crafts alkylation and related reactions.

Uses
Alkylation and acylation of arenes
AlCl3 is a common Lewis-acid catalyst for Friedel-Crafts reactions, both acylations and alkylations. Important products are detergents and ethylbenzene. These types of reactions are the major use for aluminium chloride, for example, in the preparation of anthraquinone (used in the dyestuffs industry) from benzene and phosgene. In the general Friedel-Crafts reaction, an acyl chloride or alkyl halide reacts with an aromatic system as shown:
The alkylation reaction is more widely used than the acylation reaction, although its practice is more technically demanding. For both reactions, the aluminium chloride, as well as other materials and the equipment, should be dry, although a trace of moisture is necessary for the reaction to proceed. Detailed procedures are available for alkylation and acylation of arenes.
A general problem with the Friedel-Crafts reaction is that the aluminium chloride catalyst sometimes is required in full stoichiometric quantities, because it complexes strongly with the products. This complication sometimes generates a large amount of corrosive waste. For these and similar reasons, the use of aluminium chloride has often been displaced by zeolites.Aluminium chloride can also be used to introduce aldehyde groups onto aromatic rings, for example via the Gattermann-Koch reaction which uses carbon monoxide, hydrogen chloride and a copper(I) chloride co-catalyst.

Other applications in organic and organometallic synthesis
Aluminium chloride finds a wide variety of other applications in organic chemistry. For example, it can catalyse the "ene reaction", such as the addition of 3-buten-2-one (methyl vinyl ketone) to carvone:
It is used to induce a variety of hydrocarbon couplings and rearrangements.Aluminium chloride combined with aluminium in the presence of an arene can be used to synthesize bis(arene) metal complexes, e.g