FDTD operates by discretizing both time and space. The computational domain is divided into a grid, and the electromagnetic fields are updated at each grid point using finite difference approximations. This allows for the simulation of electromagnetic wave propagation through complex structures over time.