The goal of this study is to recycle the used cooking oil from restaurants to produce the biodiesel through the transesterification procedure and then use the produced biodiesel run in a diesel engine. The biodiesel engines produced higher than diesel engine did. The biodiesel engine emitted a higher CO2 and NOx, but lower SO2 and HC, than diesel engine. The study also found diphenyl sulfone (C12H10O2S), and diethyl phthalate (C12H14O4) can be selected as the character index for the combustion of biodiesel.