A liquid biopsy works by detecting circulating tumor cells (CTCs), cell-free DNA (cfDNA), and other molecular markers shed by tumors into the bloodstream. These components can be analyzed to provide information about the presence and characteristics of a tumor, allowing for early detection and ongoing monitoring without the need for invasive procedures.