Albendazole works by inhibiting the polymerization of tubulin into microtubules, which are essential components of the cell structure in parasitic worms. This action disrupts the worm's energy metabolism and transport systems, ultimately leading to the parasite's death. By preventing the worms from maintaining their cellular structure, albendazole effectively reduces the burden of infection within the body.