A latent viral infection occurs when a virus remains within a host cell without replicating or causing symptoms, potentially reactivating under certain conditions to produce an active infection. This state allows the virus to evade the host's immune response, leading to a prolonged presence within the host.