Albendazole is used to treat neurocysticercosis (infection caused by the pork tapeworm in the muscles, brain, and eyes that may cause seizures, brain swelling, and vision problems).