A conservative force is a force with the property that the work done in moving a particle between two points is independent of the path taken. For eg. Gravitational force, magnetic force etc.
A non-conservative force is the one for which work done depends on the path. For eg, frictional force. Friction does more work on the block if one slides it along the indirect path across the tabletop. The longer the path, the more work friction does.