In this study, an upflow anaerobic sludge blanket (UASB) bioreactor at the mesophilic temperature (38 degrees C) was successfully used for the treatment of petroleum refinery effluents. Response surface methodology (RSM) was applied for the design and analysis of experiments to predict the behavior of the initial COD and the hydraulic retention time (HRT) in the bioreactor. A statistical analysis indicated that the models adequately represented the experimental data. At the optimal conditions, the effluent COD was 120 mg/L, the VSS effluent was 0.4 mg/L and the biogas rate was 0.025 L biogas/L feed. day. The Monod, First-order, Grau and modified Stover-Kincannon models were applied to determine the substrate removal kinetics in the reactor. The results obtained were described the best by the modified Stover-Kincannon model. The kinetic of methane production was also studied. The product yield coefficient, YM, was 0.69 LCH4/g CODremoved.