A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of a microtubule basal body, a short cylindrical array of microtubules and associated proteins found at the base of a eukaryotic cilium or flagellum.