Poincaré had generalised the Euler equation to any Lie algebra. We apply the same method to the infinite dimensional Virasoro algebra to obtain the KdV equation. We have discussed in a quite self-contained way the symmetries of the KdV equation and the Virasoro algebra and their interconnection.