Abstract Dynamical behavior and bifurcation structure of a viral infection model are studied under the assumption that the lytic immune response is periodic in time. The infection-free equilibrium is globally asymptotically stable when the basic reproductive ratio of virus is less than or equal to one. There is a non-constant periodic solution if the basic reproductive ratio of the virus is greater than one. It is found that period doubling bifurcations occur as the amplitude of lytic component is increased. For intermediate birth rates, the period triplication occurs and then period doubling cascades proceed gradually toward chaotic cycles. For large birth rate, the period doubling cascade proceeds gradually toward chaotic cycles without the period triplication, and the inverse period doubling can be observed. These results can be used to explain the oscillation behaviors of virus population, which was observed in chronic HBV or HCV carriers.