This paper aims to construct conservation laws for a Benjamin–Bona–Mahony equation with variable coefficients, which is a third-order partial differential equation. This equation does not have a Lagrangian and so we transform it to a fourth-order partial differential equation, which has a Lagrangian. The Noether approach is then employed to construct the conservation laws. It so happens that th...