Based on a first-order nonlinear ordinary differential equation with a sixth-degree nonlinear term, a transformation method and its algorithm are proposed, which are powerful and simple. We choose the Konopelchenko–Dubrovsky equation to illustrate our method. Consequently, many new solutions are obtained. This approach can be also applied to solve other nonlinear differential equations.