In this work we investigate the effect of a kind of scalar field, called chameleon, on the evolution of the Universe. We put this scalar field in the bulk. It is displayed that this scalar field gives us an exponential expansion in early time which may concern inflation. Interaction between the scalar field and matter brings some complications to our analysis; however, it is shown that by defining an effective potential, we could recover a conventional equation at the inflation era. After inflation, and entering the Universe in the radiation era, the exponential expansion is omitted. Also, in late time the Universe possesses an accelerated expansion. In the last section, the validity of the generalized second law of thermodynamics, with the assumption of the validity of the first law, is considered.