Real gases deviate from ideal behaviour because of the following two faulty assumptions of kinetic theory.
(i) The actual volume occupied by molecules is negligible as compared to the total volume of the gas.
(ii) The forces of attraction and repulsion between molecules of the gas are negligible.