The presented work aims to develop a novel technique for obtaining the solution of linear and nonlinear Partial Di erential Equations (PDEs). This technique is based on applying a collocation method with the aid of Bernoulli polynomials and the use of such an algorithm to solve di erent types of PDEs. The method applies the regular nite di erence scheme to the main problem and transforms it into an algebraic system. The obtained system is then solved, the unknown coe cient is acquired, and an approximate solution for the problems is achieved. Some test results of famous equations, including the telegraph, viscous Burger, and modi ed Burger equations, are tested to ensure that the provided algorithm is e ective and robust. In addition, a comparison is provided with other recent techniques from the literature. The current technique proves to have high accuracy concerning the error measure and through graphical representation of the solution.