A turbidimetric technique based on a reaction between Hg(II) and melamine is described for the measurement of melamine content of wastewater of a petrochemical company. The present technique is rapid and simple, uses a small amount of reagent and is set up with low-cost equipment, making this system economically viable. The experimental conditions such as volume of reagent, pH of buffer, stirring time, stirring speed, ionic strength, etc. were optimized and used in plotting the calibration curve. The linear dynamic range was 1 -70 mg/L with a limit of detection of 0.3 mg/L. Repeatability of the proposed method is good, and the relative standard deviation (RSD%) is less than 1.5%. Interferences studies showed that the common compounds existing in wastewater have no negative effect on the efficiency of the method at relatively high concentrations.Finally, the proposed method has been successfully used in determination of melamine in wastewater of Urmia Petrochemical Company.