NOVELTY - Preparing (P1) a Grignard reagent involves electrochemically reacting an electrode comprising the metal with a Grignard precursor in the presence of a non-aqueous electrolyte solution comprising a room temperature ionic liquid (RTIL) to prepare the Grignard reagent.    USE - For preparing a Grignard reagent useful in Grignard-type reaction (claimed) for preparation of pharmaceutically active compound e.g. tramadol, tamoxifen and naproxen.    ADVANTAGE - The method is fast, high-quantity, safe and controllable electrochemical process of preparing a Grignard reagent; and recycles the electrolyte solution.    DETAILED DESCRIPTION - Preparing (P1) a Grignard reagent of a formula RMX involves electrochemically reacting an electrode comprising the M metal with a Grignard precursor of formula RX in the presence of a non-aqueous electrolyte solution comprising a room temperature ionic liquid (RTIL) to prepare the Grignard Reagent.    R=alkyl, alkenyl, alkynyl, cycloalkyl, aryl, heteroaryl, heteroalicylic, alkoxy, aryloxy, thioalkoxy, thioaryloxy, carboxy, thiocarboxy, carbamate, thiocarbamate, amide, thioamide, carbonyl, thiocarbonyl, urea, or thiourea;    M=metal suitable for forming a Grignard reagent;    X=halide.    INDEPENDENT CLAIMS are included for the following:    (1) an electrochemical cell comprising a working electrode and a counter electrode being electrically connected to one another, where the working electrode comprises a metal M, where the metal M is suitable for forming a Grignard reagent, the electrochemical cell is operable by introducing to that a Grignard precursor of formula RX and a non-aqueous electrolyte solution comprising a room temperature ionic liquid (RTIL);    (2) preparing (P2) a compound synthesizable by a synthesis that comprises a Grignard-type reaction, involving preparing a Grignard reagent of formula RMX by electrochemically reacting a Grignard precursor of a formula RX with an electrode which comprises metal M, in the presence of an electrolyte solution that comprises a room temperature ionic liquid; and performing the Grignard-type reaction with the Grignard reagent to prepare the compound;    (3) a compound synthesizable by a synthesis that comprises a Grignard-type reaction, prepared by the method (P2);    (4) a system for preparing a compound synthesizable by a synthesis that comprises a Grignard-type reaction, comprising a reactor which comprises a working electrode and a counter electrode having a liquid passage in it, where the working electrode has a metal M, suitable for forming a Grignard reagent of a formula RMX; a first inlet port for introducing into the reactor a room temperature ionic liquid (RTIL) or an electrolyte solution comprising the RTIL, to generate a flow within the liquid passage; a second inlet port for introducing into the reactor a Grignard precursor of a formula RX, where the second inlet port is positioned upstream the liquid passage; and    (5) polishing a metal M-containing surface of a substance, involving electrochemically reacting the M-containing surface in the presence of an electrolyte solution that comprises RTIL.