Algebraic dilations