The invention relates to a three-dimensional graphene and nanometer titania composite photocatalyst and a preparation method thereof. The method comprises the following steps that 1, a 1.0 mg/mL-10.0 mg/mL aqueous graphene oxide solution is prepared; 2, nickel foam is taken and soaked in the aqueous graphene oxide solution, ultrasonic treatment is conducted, a nickel foam material loaded with graphene oxide is prepared, the material is dried, and a three-dimensional graphene oxide material is obtained; 3, haloid acid and titanium tetrachloride are sequentially dissolved in absolute ethyl alcohol, the three-dimensional graphene oxide material obtained in the second step is soaked in the solution, a reaction is conducted under the condition of 100 DEG C to 200 DEG C, heat preservation is conducted for 1 h to 6 h, cooling, separating, cleaning and drying are conducted, and the three-dimensional graphene and nanometer titania composite photocatalyst is obtained. The method inhibits lamination and irreversible agglomeration of graphene in the preparation process and greatly increases the specific surface area of graphene and the electron transmission rate, the size and morphology of obtained nanometer titania are controllable, and the photocatalytic effect of the photocatalyst is improved.